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
Locked
Cannot move
Limited
Limited - applies limits
Free
No limit
Trait Implementations
sourceimpl 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
. Read more
sourcefn 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
. Read more
sourceimpl Clone for D6MotionType
impl Clone for D6MotionType
sourcefn clone(&self) -> D6MotionType
fn clone(&self) -> D6MotionType
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 D6MotionType
impl Debug for D6MotionType
sourceimpl Hash for D6MotionType
impl Hash for D6MotionType
sourceimpl PartialEq<D6MotionType> for D6MotionType
impl PartialEq<D6MotionType> for D6MotionType
sourcefn 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 ==
. Read more
sourceimpl 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.
sourcefn try_from(
number: u64
) -> Result<D6MotionType, TryFromPrimitiveError<D6MotionType>>
fn try_from(
number: u64
) -> Result<D6MotionType, TryFromPrimitiveError<D6MotionType>>
Performs the conversion.
sourceimpl 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>>
sourceimpl ValueConverterTrait<D6MotionType> for ValueConverter
impl ValueConverterTrait<D6MotionType> for ValueConverter
sourcefn into_value(v: D6MotionType) -> Value
fn into_value(v: D6MotionType) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn 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
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