pub struct RasterImage {
pub width: u32,
pub height: u32,
pub data: Vec<u8>,
pub format: ImageFormat,
pub key: Option<String>,
}Fields§
§width: u32§height: u32§data: Vec<u8>§format: ImageFormat§key: Option<String>Trait Implementations§
Source§impl Clone for RasterImage
impl Clone for RasterImage
Source§fn clone(&self) -> RasterImage
fn clone(&self) -> RasterImage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RasterImage
impl Debug for RasterImage
Source§impl PartialEq for RasterImage
impl PartialEq for RasterImage
Source§fn eq(&self, other: &RasterImage) -> bool
fn eq(&self, other: &RasterImage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RasterImage
impl StructuralPartialEq for RasterImage
Auto Trait Implementations§
impl Freeze for RasterImage
impl RefUnwindSafe for RasterImage
impl Send for RasterImage
impl Sync for RasterImage
impl Unpin for RasterImage
impl UnsafeUnpin for RasterImage
impl UnwindSafe for RasterImage
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