pub enum BitmapData<'a> {
Bgra(&'a [u8]),
Png(&'a [u8]),
Mask(MaskData<'a>),
}
Expand description
Data content of a bitmap.
Variants§
Bgra(&'a [u8])
Uncompressed 32-bit color bitmap data, pre-multiplied in BGRA order and encoded in the sRGB color space.
Png(&'a [u8])
Compressed PNG bitmap data.
Mask(MaskData<'a>)
Data representing a single channel alpha mask.
Trait Implementations§
Source§impl<'a> Clone for BitmapData<'a>
impl<'a> Clone for BitmapData<'a>
Source§fn clone(&self) -> BitmapData<'a>
fn clone(&self) -> BitmapData<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for BitmapData<'a>
impl<'a> RefUnwindSafe for BitmapData<'a>
impl<'a> Send for BitmapData<'a>
impl<'a> Sync for BitmapData<'a>
impl<'a> Unpin for BitmapData<'a>
impl<'a> UnwindSafe for BitmapData<'a>
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