pub struct TransmissionBuilder<Joints, Actuators>where
    Joints: TransmissionJointTrait,
    Actuators: TransmissionActuatorTrait,{ /* private fields */ }

Implementations§

source§

impl TransmissionBuilder<NoJoints, NoActuator>

source

pub fn new(name: impl Into<String>, transmission_type: TransmissionType) -> Self

source§

impl<Actuator, Joints> TransmissionBuilder<Joints, Actuator>where Joints: TransmissionJointTrait, Actuator: TransmissionActuatorTrait,

source

pub fn add_joint( self, transmission_joint: impl Into<TransmissionJointBuilder> ) -> TransmissionBuilder<WithJoints, Actuator>

source

pub fn add_actuator( self, transmission_actuator: TransmissionActuator ) -> TransmissionBuilder<Joints, WithActuator>

source

pub fn name(&self) -> &String

Gets a reference to the name of the current TransmissionBuilder.

source

pub fn transmission_type(&self) -> &TransmissionType

source§

impl<Actuators> TransmissionBuilder<WithJoints, Actuators>where Actuators: TransmissionActuatorTrait,

source§

impl<Actuators> TransmissionBuilder<NoJoints, Actuators>where Actuators: TransmissionActuatorTrait,

source§

impl<Joints> TransmissionBuilder<Joints, WithActuator>where Joints: TransmissionJointTrait,

source§

impl<Joints> TransmissionBuilder<Joints, NoActuator>where Joints: TransmissionJointTrait,

Trait Implementations§

source§

impl<Joints, Actuators> Clone for TransmissionBuilder<Joints, Actuators>where Joints: TransmissionJointTrait + Clone, Actuators: TransmissionActuatorTrait + Clone,

source§

fn clone(&self) -> TransmissionBuilder<Joints, Actuators>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<Joints, Actuators> Debug for TransmissionBuilder<Joints, Actuators>where Joints: TransmissionJointTrait + Debug, Actuators: TransmissionActuatorTrait + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<Joints, Actuators> PartialEq<TransmissionBuilder<Joints, Actuators>> for TransmissionBuilder<Joints, Actuators>where Joints: TransmissionJointTrait + PartialEq, Actuators: TransmissionActuatorTrait + PartialEq,

source§

fn eq(&self, other: &TransmissionBuilder<Joints, Actuators>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Joints, Actuators> StructuralPartialEq for TransmissionBuilder<Joints, Actuators>where Joints: TransmissionJointTrait, Actuators: TransmissionActuatorTrait,

Auto Trait Implementations§

§

impl<Joints, Actuators> RefUnwindSafe for TransmissionBuilder<Joints, Actuators>where Actuators: RefUnwindSafe, Joints: RefUnwindSafe,

§

impl<Joints, Actuators> Send for TransmissionBuilder<Joints, Actuators>where Actuators: Send, Joints: Send,

§

impl<Joints, Actuators> Sync for TransmissionBuilder<Joints, Actuators>where Actuators: Sync, Joints: Sync,

§

impl<Joints, Actuators> Unpin for TransmissionBuilder<Joints, Actuators>where Actuators: Unpin, Joints: Unpin,

§

impl<Joints, Actuators> UnwindSafe for TransmissionBuilder<Joints, Actuators>where Actuators: UnwindSafe, Joints: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Scalar for Twhere T: 'static + Clone + PartialEq<T> + Debug,