Struct gfx::format::U8Norm [] [src]

pub struct U8Norm(pub u8);

Methods

impl U8Norm

fn cast2(v: [u8; 2]) -> [U8Norm; 2]

Convert a 2-element slice.

fn cast3(v: [u8; 3]) -> [U8Norm; 3]

Convert a 3-element slice.

fn cast4(v: [u8; 4]) -> [U8Norm; 4]

Convert a 4-element slice.

fn cast_slice(slice: &[u8]) -> &[U8Norm]

Convert a generic slice by transmutation.

Trait Implementations

impl From<u8> for U8Norm

fn from(v: u8) -> U8Norm

impl Formatted for U8Norm

type Surface = R8

type Channel = Unorm

type View = Unorm::ShaderType

fn get_format() -> Format

Derived Implementations

impl Debug for U8Norm

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>

impl Clone for U8Norm

fn clone(&self) -> U8Norm

1.0.0fn clone_from(&mut self, source: &Self)

impl Copy for U8Norm

impl Hash for U8Norm

fn hash<__H>(&self, __arg_0: &mut __H) where __H: Hasher

impl PartialOrd<U8Norm> for U8Norm

fn partial_cmp(&self, __arg_0: &U8Norm) -> Option<Ordering>

fn lt(&self, __arg_0: &U8Norm) -> bool

fn le(&self, __arg_0: &U8Norm) -> bool

fn gt(&self, __arg_0: &U8Norm) -> bool

fn ge(&self, __arg_0: &U8Norm) -> bool

impl PartialEq<U8Norm> for U8Norm

fn eq(&self, __arg_0: &U8Norm) -> bool

fn ne(&self, __arg_0: &U8Norm) -> bool

impl Ord for U8Norm

fn cmp(&self, __arg_0: &U8Norm) -> Ordering

impl Eq for U8Norm