#[non_exhaustive]pub struct MoshData {
pub buf: Vec<u8>,
pub image: Vec<u8>,
pub width: u32,
pub height: u32,
pub color_type: ColorType,
pub bit_depth: BitDepth,
pub palette: Option<Vec<u8>>,
pub line_size: usize,
}
Expand description
Image data.
It holds the original image, buffer and parameters.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.buf: Vec<u8>
Buffer.
image: Vec<u8>
Original image.
width: u32
Width.
height: u32
Height.
color_type: ColorType
Color type.
bit_depth: BitDepth
Bit depth.
palette: Option<Vec<u8>>
Color palette.
line_size: usize
Line size.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MoshData
impl RefUnwindSafe for MoshData
impl Send for MoshData
impl Sync for MoshData
impl Unpin for MoshData
impl UnwindSafe for MoshData
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