Enum PixelFormat
#[repr(i32)]pub enum PixelFormat {
Rgb = 0,
Rgba = 1,
}Expand description
Pixel formats.
Variants§
Implementations§
§impl PixelFormat
impl PixelFormat
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> PixelFormat
Trait Implementations§
§impl Clone for PixelFormat
impl Clone for PixelFormat
§fn clone(&self) -> PixelFormat
fn clone(&self) -> PixelFormat
Returns a duplicate 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 more§impl Debug for PixelFormat
impl Debug for PixelFormat
§impl Display for PixelFormat
impl Display for PixelFormat
§impl PartialEq for PixelFormat
impl PartialEq for PixelFormat
§impl VariantConstraint for PixelFormat
impl VariantConstraint for PixelFormat
§type DataArg<'a> = PixelFormat
type DataArg<'a> = PixelFormat
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = PixelFormat
type RetArg = PixelFormat
§fn as_arg(&self) -> <PixelFormat as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <PixelFormat as VariantConstraint>::DataArg<'_>
impl Copy for PixelFormat
impl Eq for PixelFormat
impl PropertyTypeConstraint for PixelFormat
impl StructuralPartialEq for PixelFormat
Auto Trait Implementations§
impl Freeze for PixelFormat
impl RefUnwindSafe for PixelFormat
impl Send for PixelFormat
impl Sync for PixelFormat
impl Unpin for PixelFormat
impl UnwindSafe for PixelFormat
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