pub enum ImagePixelFormat {
Rgba8,
Alpha8 {
color: [u8; 3],
},
}Expand description
Storage format of an immutable bitmap.
Variants§
Rgba8
Four bytes per pixel, ordered red, green, blue, alpha.
Alpha8
One alpha byte per pixel and a constant, unpremultiplied RGB color.
Trait Implementations§
Source§impl Clone for ImagePixelFormat
impl Clone for ImagePixelFormat
Source§fn clone(&self) -> ImagePixelFormat
fn clone(&self) -> ImagePixelFormat
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 moreimpl Copy for ImagePixelFormat
Source§impl Debug for ImagePixelFormat
impl Debug for ImagePixelFormat
impl Eq for ImagePixelFormat
Source§impl Hash for ImagePixelFormat
impl Hash for ImagePixelFormat
Source§impl PartialEq for ImagePixelFormat
impl PartialEq for ImagePixelFormat
impl StructuralPartialEq for ImagePixelFormat
Auto Trait Implementations§
impl Freeze for ImagePixelFormat
impl RefUnwindSafe for ImagePixelFormat
impl Send for ImagePixelFormat
impl Sync for ImagePixelFormat
impl Unpin for ImagePixelFormat
impl UnsafeUnpin for ImagePixelFormat
impl UnwindSafe for ImagePixelFormat
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