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