Struct gfx::core::format::U8Scaled
[−]
pub struct U8Scaled(pub u8);
Methods
impl U8Scaled
fn cast2(v: [u8; 2]) -> [U8Scaled; 2]
Convert a 2-element slice.
fn cast3(v: [u8; 3]) -> [U8Scaled; 3]
Convert a 3-element slice.
fn cast4(v: [u8; 4]) -> [U8Scaled; 4]
Convert a 4-element slice.
fn cast_slice(slice: &[u8]) -> &[U8Scaled]
Convert a generic slice by transmutation.
Trait Implementations
impl Debug for U8Scaled
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Clone for U8Scaled
fn clone(&self) -> U8Scaled
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 U8Scaled
impl Hash for U8Scaled
impl PartialOrd<U8Scaled> for U8Scaled
fn partial_cmp(&self, __arg_0: &U8Scaled) -> Option<Ordering>
fn lt(&self, __arg_0: &U8Scaled) -> bool
fn le(&self, __arg_0: &U8Scaled) -> bool
fn gt(&self, __arg_0: &U8Scaled) -> bool
fn ge(&self, __arg_0: &U8Scaled) -> bool
impl PartialEq<U8Scaled> for U8Scaled
fn eq(&self, __arg_0: &U8Scaled) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &U8Scaled) -> bool
This method tests for !=.
impl Ord for U8Scaled
impl Eq for U8Scaled
impl From<u8> for U8Scaled
impl Formatted for U8Scaled
type Surface = R8
Associated surface type.
type Channel = Uscaled
Associated channel type.
type View = Uscaled::ShaderType
Shader view type of this format.
fn get_format() -> Format
Return the run-time value of the type.