#[non_exhaustive]#[repr(u32)]pub enum CameraProjectionMode {
Orthographic = 0,
Perspective = 1,
}Expand description
Not yet working.
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 CheckedBitPattern for CameraProjectionMode
impl CheckedBitPattern for CameraProjectionMode
Source§type Bits = u32
type Bits = u32
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl Clone for CameraProjectionMode
impl Clone for CameraProjectionMode
Source§fn clone(&self) -> CameraProjectionMode
fn clone(&self) -> CameraProjectionMode
Returns a duplicate 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 CameraProjectionMode
impl Debug for CameraProjectionMode
Source§impl From<CameraProjectionMode> for u32
impl From<CameraProjectionMode> for u32
Source§fn from(enum_value: CameraProjectionMode) -> Self
fn from(enum_value: CameraProjectionMode) -> Self
Converts to this type from the input type.
Source§impl Hash for CameraProjectionMode
impl Hash for CameraProjectionMode
Source§impl PartialEq for CameraProjectionMode
impl PartialEq for CameraProjectionMode
Source§impl TryFrom<u32> for CameraProjectionMode
impl TryFrom<u32> for CameraProjectionMode
Source§type Error = TryFromPrimitiveError<CameraProjectionMode>
type Error = TryFromPrimitiveError<CameraProjectionMode>
The type returned in the event of a conversion error.
impl Copy for CameraProjectionMode
impl Eq for CameraProjectionMode
impl NoUninit for CameraProjectionMode
impl StructuralPartialEq for CameraProjectionMode
Auto Trait Implementations§
impl Freeze for CameraProjectionMode
impl RefUnwindSafe for CameraProjectionMode
impl Send for CameraProjectionMode
impl Sync for CameraProjectionMode
impl Unpin for CameraProjectionMode
impl UnwindSafe for CameraProjectionMode
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