pub struct Format(pub u32);
Expand description
A graphics format.
Tuple Fields§
§0: u32
Implementations§
Source§impl Format
impl Format
pub const ARGB8888: Self
pub const XRGB8888: Self
pub const ABGR8888: Self
pub const XBGR8888: Self
pub const R8: Self
pub const GR88: Self
pub const RGB888: Self
pub const BGR888: Self
pub const RGBA4444: Self
pub const RGBX4444: Self
pub const BGRA4444: Self
pub const BGRX4444: Self
pub const RGB565: Self
pub const BGR565: Self
pub const RGBA5551: Self
pub const RGBX5551: Self
pub const BGRA5551: Self
pub const BGRX5551: Self
pub const ARGB1555: Self
pub const XRGB1555: Self
pub const ARGB2101010: Self
pub const XRGB2101010: Self
pub const ABGR2101010: Self
pub const XBGR2101010: Self
pub const ABGR16161616: Self
pub const XBGR16161616: Self
pub const ABGR16161616F: Self
pub const XBGR16161616F: Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Format
impl<'de> Deserialize<'de> for Format
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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