#[repr(u32)]pub enum TextureFormat {
Alpha = 6_406,
Luminance = 6_409,
LuminanceAlpha = 6_410,
Rgb = 6_407,
Rgba = 6_408,
}
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for TextureFormat
impl Clone for TextureFormat
Source§fn clone(&self) -> TextureFormat
fn clone(&self) -> TextureFormat
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 moreSource§impl Debug for TextureFormat
impl Debug for TextureFormat
Source§impl From<TextureFormat> for u32
impl From<TextureFormat> for u32
Source§fn from(enum_value: TextureFormat) -> Self
fn from(enum_value: TextureFormat) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TextureFormat
impl PartialEq for TextureFormat
Source§impl TryFrom<u32> for TextureFormat
impl TryFrom<u32> for TextureFormat
Source§type Error = TryFromPrimitiveError<TextureFormat>
type Error = TryFromPrimitiveError<TextureFormat>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for TextureFormat
impl TryFromPrimitive for TextureFormat
const NAME: &'static str = "TextureFormat"
type Primitive = u32
type Error = TryFromPrimitiveError<TextureFormat>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for TextureFormat
impl Eq for TextureFormat
impl StructuralPartialEq for TextureFormat
Auto Trait Implementations§
impl Freeze for TextureFormat
impl RefUnwindSafe for TextureFormat
impl Send for TextureFormat
impl Sync for TextureFormat
impl Unpin for TextureFormat
impl UnwindSafe for TextureFormat
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