#[non_exhaustive]#[repr(u64)]pub enum D6Drive {
X = 0,
Y = 1,
Z = 2,
Swing = 3,
Twist = 4,
SLERP = 5,
}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 = 0
X axis
Y = 1
Y axis
Z = 2
Z axis
Swing = 3
Swing displacement from the X axis (around Y and Z)
Twist = 4
Twist rotation around the X axis.
SLERP = 5
SLERP, spherical interpolation. For driving all three axes together.
Trait Implementations§
Source§impl CheckedBitPattern for D6Drive
impl CheckedBitPattern for D6Drive
Source§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: &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 TryFromPrimitive for D6Drive
impl TryFromPrimitive for D6Drive
impl Copy for D6Drive
impl Eq for D6Drive
impl NoUninit for D6Drive
impl StructuralPartialEq for D6Drive
Auto Trait Implementations§
impl Freeze for D6Drive
impl RefUnwindSafe for D6Drive
impl Send for D6Drive
impl Sync for D6Drive
impl Unpin for D6Drive
impl UnwindSafe for D6Drive
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