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