Enum ark_api::world::MeshOrigin
source · [−]#[repr(u32)]
#[non_exhaustive]
pub enum MeshOrigin {
Top,
Center,
Bottom,
}
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.
Top
Center
Bottom
Trait Implementations
sourceimpl CheckedBitPattern for MeshOrigin
impl CheckedBitPattern for MeshOrigin
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
. Read more
sourcefn is_valid_bit_pattern(bits: &<MeshOrigin as CheckedBitPattern>::Bits) -> bool
fn is_valid_bit_pattern(bits: &<MeshOrigin as CheckedBitPattern>::Bits) -> bool
If this function returns true, then it must be valid to reinterpret bits
as &Self
. Read more
sourceimpl Clone for MeshOrigin
impl Clone for MeshOrigin
sourcefn clone(&self) -> MeshOrigin
fn clone(&self) -> MeshOrigin
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 MeshOrigin
impl Debug for MeshOrigin
sourceimpl Hash for MeshOrigin
impl Hash for MeshOrigin
sourceimpl PartialEq<MeshOrigin> for MeshOrigin
impl PartialEq<MeshOrigin> for MeshOrigin
sourcefn eq(&self, other: &MeshOrigin) -> bool
fn eq(&self, other: &MeshOrigin) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl TryFrom<u32> for MeshOrigin
impl TryFrom<u32> for MeshOrigin
type Error = TryFromPrimitiveError<MeshOrigin>
type Error = TryFromPrimitiveError<MeshOrigin>
The type returned in the event of a conversion error.
sourcefn try_from(
number: u32
) -> Result<MeshOrigin, TryFromPrimitiveError<MeshOrigin>>
fn try_from(
number: u32
) -> Result<MeshOrigin, TryFromPrimitiveError<MeshOrigin>>
Performs the conversion.
sourceimpl TryFromPrimitive for MeshOrigin
impl TryFromPrimitive for MeshOrigin
type Primitive = u32
const NAME: &'static str = "MeshOrigin"
fn try_from_primitive(
number: <MeshOrigin as TryFromPrimitive>::Primitive
) -> Result<MeshOrigin, TryFromPrimitiveError<MeshOrigin>>
impl Copy for MeshOrigin
impl Eq for MeshOrigin
impl NoUninit for MeshOrigin
impl StructuralEq for MeshOrigin
impl StructuralPartialEq for MeshOrigin
Auto Trait Implementations
impl RefUnwindSafe for MeshOrigin
impl Send for MeshOrigin
impl Sync for MeshOrigin
impl Unpin for MeshOrigin
impl UnwindSafe for MeshOrigin
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