pub struct JpegImage {
pub width: usize,
pub height: usize,
pub channels: usize,
pub pixels: Vec<u8>,
}Expand description
A decoded raster image with interleaved 8-bit samples (channels is 1 for grayscale or 3 for
RGB, row-major, width * height * channels bytes).
Fields§
§width: usize§height: usize§channels: usize§pixels: Vec<u8>Trait Implementations§
impl Eq for JpegImage
impl StructuralPartialEq for JpegImage
Auto Trait Implementations§
impl Freeze for JpegImage
impl RefUnwindSafe for JpegImage
impl Send for JpegImage
impl Sync for JpegImage
impl Unpin for JpegImage
impl UnsafeUnpin for JpegImage
impl UnwindSafe for JpegImage
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