pub struct Image {
pub width: u32,
pub height: u32,
pub data: Vec<u8>,
}Expand description
8-bit sRGB RGBA, straight alpha, row-major, no padding.
Fields§
§width: u32Width in pixels.
height: u32Height in pixels.
data: Vec<u8>width * height * 4 bytes.
Implementations§
Trait Implementations§
impl Eq for Image
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