Enum ark_api::world::JointLimitType
source · [−]#[repr(u64)]
pub enum JointLimitType {
Off,
Hard,
Spring,
}
Expand description
The limit type of a Joint
, changes how it will behave if it reaches the set limits
Variants
Off
No limits.
Hard
Hard limits. No bounce.
Spring
Spring limits.
Takes stiffness and damping parameters, which are set
through Joint::limits
.
Trait Implementations
sourceimpl CheckedBitPattern for JointLimitType
impl CheckedBitPattern for JointLimitType
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: &<JointLimitType as CheckedBitPattern>::Bits
) -> bool
fn is_valid_bit_pattern(
bits: &<JointLimitType as CheckedBitPattern>::Bits
) -> bool
If this function returns true, then it must be valid to reinterpret bits
as &Self
. Read more
sourceimpl Clone for JointLimitType
impl Clone for JointLimitType
sourcefn clone(&self) -> JointLimitType
fn clone(&self) -> JointLimitType
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 JointLimitType
impl Debug for JointLimitType
sourceimpl Hash for JointLimitType
impl Hash for JointLimitType
sourceimpl PartialEq<JointLimitType> for JointLimitType
impl PartialEq<JointLimitType> for JointLimitType
sourcefn eq(&self, other: &JointLimitType) -> bool
fn eq(&self, other: &JointLimitType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl TryFrom<u64> for JointLimitType
impl TryFrom<u64> for JointLimitType
type Error = TryFromPrimitiveError<JointLimitType>
type Error = TryFromPrimitiveError<JointLimitType>
The type returned in the event of a conversion error.
sourcefn try_from(
number: u64
) -> Result<JointLimitType, TryFromPrimitiveError<JointLimitType>>
fn try_from(
number: u64
) -> Result<JointLimitType, TryFromPrimitiveError<JointLimitType>>
Performs the conversion.
sourceimpl TryFromPrimitive for JointLimitType
impl TryFromPrimitive for JointLimitType
type Primitive = u64
const NAME: &'static str = "JointLimitType"
fn try_from_primitive(
number: <JointLimitType as TryFromPrimitive>::Primitive
) -> Result<JointLimitType, TryFromPrimitiveError<JointLimitType>>
sourceimpl ValueConverterTrait<JointLimitType> for ValueConverter
impl ValueConverterTrait<JointLimitType> for ValueConverter
sourcefn into_value(v: JointLimitType) -> Value
fn into_value(v: JointLimitType) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> JointLimitType
fn from_value(v: &Value) -> JointLimitType
Extracts the value from a Value
enum.
impl Copy for JointLimitType
impl Eq for JointLimitType
impl NoUninit for JointLimitType
impl StructuralEq for JointLimitType
impl StructuralPartialEq for JointLimitType
Auto Trait Implementations
impl RefUnwindSafe for JointLimitType
impl Send for JointLimitType
impl Sync for JointLimitType
impl Unpin for JointLimitType
impl UnwindSafe for JointLimitType
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