pub struct GrayImage {
pub width: u32,
pub height: u32,
pub pixels: Vec<u8>,
}Expand description
One 8-bit channel (masks).
Fields§
§width: u32Width in pixels.
height: u32Height in pixels.
pixels: Vec<u8>width * height bytes, rows top to bottom.
Implementations§
Trait Implementations§
impl Eq for GrayImage
impl StructuralPartialEq for GrayImage
Auto Trait Implementations§
impl Freeze for GrayImage
impl RefUnwindSafe for GrayImage
impl Send for GrayImage
impl Sync for GrayImage
impl Unpin for GrayImage
impl UnsafeUnpin for GrayImage
impl UnwindSafe for GrayImage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.