Enum ark_api::world::D6MotionType
source · #[repr(u64)]pub enum D6MotionType {
Locked,
Limited,
Free,
}Expand description
The motion type of an axis of a D6 Joint.
Variants§
Trait Implementations§
source§impl CheckedBitPattern for D6MotionType
impl CheckedBitPattern for D6MotionType
§type Bits = u64
type Bits = u64
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: &<D6MotionType as CheckedBitPattern>::Bits
) -> bool
fn is_valid_bit_pattern( bits: &<D6MotionType as CheckedBitPattern>::Bits ) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.source§impl Clone for D6MotionType
impl Clone for D6MotionType
source§fn clone(&self) -> D6MotionType
fn clone(&self) -> D6MotionType
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 D6MotionType
impl Debug for D6MotionType
source§impl Hash for D6MotionType
impl Hash for D6MotionType
source§impl PartialEq<D6MotionType> for D6MotionType
impl PartialEq<D6MotionType> for D6MotionType
source§fn eq(&self, other: &D6MotionType) -> bool
fn eq(&self, other: &D6MotionType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u64> for D6MotionType
impl TryFrom<u64> for D6MotionType
§type Error = TryFromPrimitiveError<D6MotionType>
type Error = TryFromPrimitiveError<D6MotionType>
The type returned in the event of a conversion error.
source§fn try_from(
number: u64
) -> Result<D6MotionType, TryFromPrimitiveError<D6MotionType>>
fn try_from( number: u64 ) -> Result<D6MotionType, TryFromPrimitiveError<D6MotionType>>
Performs the conversion.
source§impl TryFromPrimitive for D6MotionType
impl TryFromPrimitive for D6MotionType
type Primitive = u64
const NAME: &'static str = "D6MotionType"
fn try_from_primitive( number: <D6MotionType as TryFromPrimitive>::Primitive ) -> Result<D6MotionType, TryFromPrimitiveError<D6MotionType>>
source§impl ValueConverterTrait<D6MotionType> for ValueConverter
impl ValueConverterTrait<D6MotionType> for ValueConverter
source§fn into_value(v: D6MotionType) -> Value
fn into_value(v: D6MotionType) -> Value
Wraps the passed-in value in a
Value enum.source§fn from_value(v: &Value) -> D6MotionType
fn from_value(v: &Value) -> D6MotionType
Extracts the value from a
Value enum.impl Copy for D6MotionType
impl Eq for D6MotionType
impl NoUninit for D6MotionType
impl StructuralEq for D6MotionType
impl StructuralPartialEq for D6MotionType
Auto Trait Implementations§
impl RefUnwindSafe for D6MotionType
impl Send for D6MotionType
impl Sync for D6MotionType
impl Unpin for D6MotionType
impl UnwindSafe for D6MotionType
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