#[non_exhaustive]pub enum Pixels {
Gray8(Vec<u8>),
Gray16 {
samples: Vec<u16>,
bits: u8,
},
Rgb8(Vec<u8>),
Rgb16 {
samples: Vec<u16>,
bits: u8,
},
}Expand description
An image at the camera’s own depth, as full_depth returns it.
16-bit samples hold the camera’s values, 0 ..= 2^bits − 1, not scaled
to 16 bits. Colour samples are interleaved R, G, B.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Gray8(Vec<u8>)
One 8-bit sample per pixel.
Gray16
One sample per pixel, bits of it significant.
Rgb8(Vec<u8>)
Three 8-bit samples per pixel.
Rgb16
Three samples per pixel, bits of each significant.
Implementations§
Trait Implementations§
impl Eq for Pixels
impl StructuralPartialEq for Pixels
Auto Trait Implementations§
impl Freeze for Pixels
impl RefUnwindSafe for Pixels
impl Send for Pixels
impl Sync for Pixels
impl Unpin for Pixels
impl UnsafeUnpin for Pixels
impl UnwindSafe for Pixels
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