#[non_exhaustive]pub enum ImageSamples {
U8(Vec<u8>),
U16(Vec<u16>),
F32(Vec<f32>),
}Expand description
An image’s samples, in whichever width its PixelFormat selects.
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.
Implementations§
Trait Implementations§
Source§impl Clone for ImageSamples
impl Clone for ImageSamples
Source§impl Debug for ImageSamples
impl Debug for ImageSamples
Source§impl PartialEq for ImageSamples
impl PartialEq for ImageSamples
impl StructuralPartialEq for ImageSamples
Auto Trait Implementations§
impl Freeze for ImageSamples
impl RefUnwindSafe for ImageSamples
impl Send for ImageSamples
impl Sync for ImageSamples
impl Unpin for ImageSamples
impl UnsafeUnpin for ImageSamples
impl UnwindSafe for ImageSamples
Blanket Implementations§
impl<T> Allocation for T
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