Enum webgl_rc::TextureFormat
source · [−]#[repr(u32)]
pub enum TextureFormat {
Alpha,
Luminance,
LuminanceAlpha,
Rgb,
Rgba,
}Variants
Alpha
Luminance
LuminanceAlpha
Rgb
Rgba
Implementations
sourceimpl TextureFormat
impl TextureFormat
Trait Implementations
sourceimpl Clone for TextureFormat
impl Clone for TextureFormat
sourcefn clone(&self) -> TextureFormat
fn clone(&self) -> TextureFormat
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 TextureFormat
impl Debug for TextureFormat
sourceimpl From<TextureFormat> for u32
impl From<TextureFormat> for u32
sourcefn from(enum_value: TextureFormat) -> Self
fn from(enum_value: TextureFormat) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<TextureFormat> for TextureFormat
impl PartialEq<TextureFormat> for TextureFormat
sourcefn eq(&self, other: &TextureFormat) -> bool
fn eq(&self, other: &TextureFormat) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl TryFrom<u32> for TextureFormat
impl TryFrom<u32> for TextureFormat
type Error = TryFromPrimitiveError<TextureFormat>
type Error = TryFromPrimitiveError<TextureFormat>
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 TextureFormat
impl TryFromPrimitive for TextureFormat
type Primitive = u32
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for TextureFormat
impl Eq for TextureFormat
impl StructuralEq for TextureFormat
impl StructuralPartialEq for TextureFormat
Auto Trait Implementations
impl RefUnwindSafe for TextureFormat
impl Send for TextureFormat
impl Sync for TextureFormat
impl Unpin for TextureFormat
impl UnwindSafe for TextureFormat
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