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 Debug for U8Norm
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Clone for U8Norm
fn clone(&self) -> U8Norm
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for U8Norm
impl Hash for U8Norm
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
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &U8Norm) -> bool
This method tests for !=
.
impl Ord for U8Norm
impl Eq for U8Norm
impl From<u8> for U8Norm
impl Formatted for U8Norm
type Surface = R8
Associated surface type.
type Channel = Unorm
Associated channel type.
type View = Unorm::ShaderType
Shader view type of this format.
fn get_format() -> Format
Return the run-time value of the type.