#[repr(u32)]pub enum EntityTemplate {
Empty = 0,
PhysicsObject = 1,
Environment = 2,
MeshStyle = 3,
Camera = 4,
NonPhysicsObject = 5,
}Variants§
Trait Implementations§
Source§impl CheckedBitPattern for EntityTemplate
impl CheckedBitPattern for EntityTemplate
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 EntityTemplate
impl Clone for EntityTemplate
Source§fn clone(&self) -> EntityTemplate
fn clone(&self) -> EntityTemplate
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 EntityTemplate
impl Debug for EntityTemplate
Source§impl From<EntityTemplate> for u32
impl From<EntityTemplate> for u32
Source§fn from(enum_value: EntityTemplate) -> Self
fn from(enum_value: EntityTemplate) -> Self
Converts to this type from the input type.
Source§impl Hash for EntityTemplate
impl Hash for EntityTemplate
Source§impl PartialEq for EntityTemplate
impl PartialEq for EntityTemplate
Source§impl TryFrom<u32> for EntityTemplate
impl TryFrom<u32> for EntityTemplate
Source§type Error = TryFromPrimitiveError<EntityTemplate>
type Error = TryFromPrimitiveError<EntityTemplate>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for EntityTemplate
impl TryFromPrimitive for EntityTemplate
impl Copy for EntityTemplate
impl Eq for EntityTemplate
impl NoUninit for EntityTemplate
impl StructuralPartialEq for EntityTemplate
Auto Trait Implementations§
impl Freeze for EntityTemplate
impl RefUnwindSafe for EntityTemplate
impl Send for EntityTemplate
impl Sync for EntityTemplate
impl Unpin for EntityTemplate
impl UnwindSafe for EntityTemplate
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