#[non_exhaustive]#[repr(u32)]pub enum CubemapFace {
PositiveX = 0,
NegativeX = 1,
PositiveY = 2,
NegativeY = 3,
PositiveZ = 4,
NegativeZ = 5,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for CubemapFace
impl Clone for CubemapFace
Source§fn clone(&self) -> CubemapFace
fn clone(&self) -> CubemapFace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CubemapFace
Source§impl Debug for CubemapFace
impl Debug for CubemapFace
Source§impl Display for CubemapFace
impl Display for CubemapFace
impl Eq for CubemapFace
Source§impl From<CUarray_cubemap_face_enum> for CubemapFace
impl From<CUarray_cubemap_face_enum> for CubemapFace
Source§fn from(value: CUarray_cubemap_face) -> Self
fn from(value: CUarray_cubemap_face) -> Self
Converts to this type from the input type.
Source§impl From<CubemapFace> for u32
impl From<CubemapFace> for u32
Source§fn from(enum_value: CubemapFace) -> Self
fn from(enum_value: CubemapFace) -> Self
Converts to this type from the input type.
Source§impl From<CubemapFace> for CUarray_cubemap_face
impl From<CubemapFace> for CUarray_cubemap_face
Source§fn from(value: CubemapFace) -> Self
fn from(value: CubemapFace) -> Self
Converts to this type from the input type.
Source§impl Hash for CubemapFace
impl Hash for CubemapFace
Source§impl PartialEq for CubemapFace
impl PartialEq for CubemapFace
Source§fn eq(&self, other: &CubemapFace) -> bool
fn eq(&self, other: &CubemapFace) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CubemapFace
Source§impl TryFrom<u32> for CubemapFace
impl TryFrom<u32> for CubemapFace
Source§type Error = TryFromPrimitiveError<CubemapFace>
type Error = TryFromPrimitiveError<CubemapFace>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for CubemapFace
impl TryFromPrimitive for CubemapFace
const NAME: &'static str = "CubemapFace"
type Primitive = u32
type Error = TryFromPrimitiveError<CubemapFace>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for CubemapFace
impl RefUnwindSafe for CubemapFace
impl Send for CubemapFace
impl Sync for CubemapFace
impl Unpin for CubemapFace
impl UnsafeUnpin for CubemapFace
impl UnwindSafe for CubemapFace
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