Struct k::Constraints[][src]

pub struct Constraints {
    pub position_x: bool,
    pub position_y: bool,
    pub position_z: bool,
    pub rotation_x: bool,
    pub rotation_y: bool,
    pub rotation_z: bool,
}

A bundle of flags determining which coordinates are constrained for a target

Fields

position_x: bool

true means the constraint is used. The coordinates is the world, not the end of the arm.

position_y: boolposition_z: boolrotation_x: boolrotation_y: boolrotation_z: bool

Trait Implementations

impl Clone for Constraints[src]

impl Copy for Constraints[src]

impl Debug for Constraints[src]

impl Default for Constraints[src]

fn default() -> Self[src]

Initialize with all true

let c = k::Constraints::default();
assert!(c.position_x);
assert!(c.position_y);
assert!(c.position_z);
assert!(c.rotation_x);
assert!(c.rotation_y);
assert!(c.rotation_z);

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.