#[repr(u64)]
#[non_exhaustive]
pub enum D6Drive {
X,
Y,
Z,
Swing,
Twist,
SLERP,
}
Expand description
The drive types of a D6 Joint
.
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.
X
X axis
Y
Y axis
Z
Z axis
Swing
Swing displacement from the X axis (around Y and Z)
Twist
Twist rotation around the X axis.
SLERP
SLERP, spherical interpolation. For driving all three axes together.
Trait Implementations
sourceimpl CheckedBitPattern for D6Drive
impl CheckedBitPattern for D6Drive
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: &<D6Drive as CheckedBitPattern>::Bits) -> bool
fn is_valid_bit_pattern(bits: &<D6Drive as CheckedBitPattern>::Bits) -> bool
If this function returns true, then it must be valid to reinterpret bits
as &Self
. Read more
sourceimpl PartialEq<D6Drive> for D6Drive
impl PartialEq<D6Drive> for D6Drive
impl Copy for D6Drive
impl Eq for D6Drive
impl NoUninit for D6Drive
impl StructuralEq for D6Drive
impl StructuralPartialEq for D6Drive
Auto Trait Implementations
impl RefUnwindSafe for D6Drive
impl Send for D6Drive
impl Sync for D6Drive
impl Unpin for D6Drive
impl UnwindSafe for D6Drive
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