#[repr(u32)]pub enum TextureType {
Byte = 5_121,
Float = 5_126,
HalfFloat = 36_193,
}
Variants§
Trait Implementations§
Source§impl Clone for TextureType
impl Clone for TextureType
Source§fn clone(&self) -> TextureType
fn clone(&self) -> TextureType
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 TextureType
impl Debug for TextureType
Source§impl From<TextureType> for u32
impl From<TextureType> for u32
Source§fn from(enum_value: TextureType) -> Self
fn from(enum_value: TextureType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TextureType
impl PartialEq for TextureType
Source§impl TryFrom<u32> for TextureType
impl TryFrom<u32> for TextureType
Source§type Error = TryFromPrimitiveError<TextureType>
type Error = TryFromPrimitiveError<TextureType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for TextureType
impl TryFromPrimitive for TextureType
const NAME: &'static str = "TextureType"
type Primitive = u32
type Error = TryFromPrimitiveError<TextureType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for TextureType
impl Eq for TextureType
impl StructuralPartialEq for TextureType
Auto Trait Implementations§
impl Freeze for TextureType
impl RefUnwindSafe for TextureType
impl Send for TextureType
impl Sync for TextureType
impl Unpin for TextureType
impl UnwindSafe for TextureType
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