pub struct Type(pub Kind, pub u8, pub u16);
Expand description
Type is used to define the type of pixel data in terms of kind and bits For example, Type::new(Kind::UInt, 8) uses one 8-bit unsigned integer per channel and Type::new(Kind::Float, 32) uses a float per channel, etc…
Tuple Fields§
§0: Kind
§1: u8
§2: u16
Implementations§
Trait Implementations§
Source§impl PartialOrd for Type
impl PartialOrd for Type
impl Copy for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more