pub struct Image {
pub width: usize,
pub height: usize,
pub rgb: bool,
pub data: ImageData,
pub unique_id: i64,
}Expand description
A 2D image, row-major with x varying fastest.
Fields§
§width: usize§height: usize§rgb: bool3 interleaved samples per pixel (RGB1) instead of 1.
data: ImageData§unique_id: i64Trait Implementations§
impl StructuralPartialEq for Image
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnsafeUnpin for Image
impl UnwindSafe for Image
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