Enum webgl_rc::TextureType
source · [−]#[repr(u32)]
pub enum TextureType {
Byte,
Float,
HalfFloat,
}Variants
Byte
Float
HalfFloat
Trait Implementations
sourceimpl Clone for TextureType
impl Clone for TextureType
sourcefn clone(&self) -> TextureType
fn clone(&self) -> TextureType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for TextureType
impl Debug for TextureType
sourceimpl From<TextureType> for u32
impl From<TextureType> for u32
sourcefn from(enum_value: TextureType) -> Self
fn from(enum_value: TextureType) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<TextureType> for TextureType
impl PartialEq<TextureType> for TextureType
sourcefn eq(&self, other: &TextureType) -> bool
fn eq(&self, other: &TextureType) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl TryFrom<u32> for TextureType
impl TryFrom<u32> for TextureType
type Error = TryFromPrimitiveError<TextureType>
type Error = TryFromPrimitiveError<TextureType>
The type returned in the event of a conversion error.
sourcefn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for TextureType
impl TryFromPrimitive for TextureType
type Primitive = u32
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for TextureType
impl Eq for TextureType
impl StructuralEq for TextureType
impl StructuralPartialEq for TextureType
Auto Trait Implementations
impl RefUnwindSafe for TextureType
impl Send for TextureType
impl Sync for TextureType
impl Unpin for TextureType
impl UnwindSafe for TextureType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more