Enum ark_api::world::CameraProjectionMode
source · #[non_exhaustive]#[repr(u32)]pub enum CameraProjectionMode {
Orthographic,
Perspective,
}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
§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: &<CameraProjectionMode as CheckedBitPattern>::Bits
) -> bool
fn is_valid_bit_pattern( bits: &<CameraProjectionMode as CheckedBitPattern>::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 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 CameraProjectionMode
impl Debug for CameraProjectionMode
source§impl Hash for CameraProjectionMode
impl Hash for CameraProjectionMode
source§impl PartialEq<CameraProjectionMode> for CameraProjectionMode
impl PartialEq<CameraProjectionMode> for CameraProjectionMode
source§fn eq(&self, other: &CameraProjectionMode) -> bool
fn eq(&self, other: &CameraProjectionMode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u32> for CameraProjectionMode
impl TryFrom<u32> for CameraProjectionMode
§type Error = TryFromPrimitiveError<CameraProjectionMode>
type Error = TryFromPrimitiveError<CameraProjectionMode>
The type returned in the event of a conversion error.
source§fn try_from(
number: u32
) -> Result<CameraProjectionMode, TryFromPrimitiveError<CameraProjectionMode>>
fn try_from( number: u32 ) -> Result<CameraProjectionMode, TryFromPrimitiveError<CameraProjectionMode>>
Performs the conversion.
source§impl TryFromPrimitive for CameraProjectionMode
impl TryFromPrimitive for CameraProjectionMode
type Primitive = u32
const NAME: &'static str = "CameraProjectionMode"
fn try_from_primitive( number: <CameraProjectionMode as TryFromPrimitive>::Primitive ) -> Result<CameraProjectionMode, TryFromPrimitiveError<CameraProjectionMode>>
impl Copy for CameraProjectionMode
impl Eq for CameraProjectionMode
impl NoUninit for CameraProjectionMode
impl StructuralEq for CameraProjectionMode
impl StructuralPartialEq for CameraProjectionMode
Auto Trait Implementations§
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