[−][src]Enum piet_common::ImageFormat
The pixel format for bitmap images.
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
1 byte per pixel
3 bytes per pixel, in RGB order.
4 bytes per pixel, in RGBA order, with separate alpha.
4 bytes per pixel, in RGBA order, with premultiplied alpha.
Implementations
impl ImageFormat[src]
pub fn bytes_per_pixel(self) -> usize[src]
Trait Implementations
impl Clone for ImageFormat[src]
pub fn clone(&self) -> ImageFormat[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for ImageFormat[src]
impl Debug for ImageFormat[src]
impl PartialEq<ImageFormat> for ImageFormat[src]
pub fn eq(&self, other: &ImageFormat) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl StructuralPartialEq for ImageFormat[src]
Auto Trait Implementations
impl RefUnwindSafe for ImageFormat[src]
impl Send for ImageFormat[src]
impl Sync for ImageFormat[src]
impl Unpin for ImageFormat[src]
impl UnwindSafe for ImageFormat[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> RoundFrom<T> for T[src]
pub fn round_from(x: T) -> T[src]
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>, [src]
U: RoundFrom<T>,
pub fn round_into(self) -> U[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,