pub struct TransmissionJointBuilder { /* private fields */ }
Implementations§
source§impl TransmissionJointBuilder
impl TransmissionJointBuilder
sourcepub fn new(
joint_name: impl Into<String>,
hardware_interface: TransmissionHardwareInterface
) -> Self
pub fn new( joint_name: impl Into<String>, hardware_interface: TransmissionHardwareInterface ) -> Self
TODO: DOC
The minum hardware interfaces is 1 so I require one at creation
pub fn add_hw_interface( &mut self, hardware_interface: TransmissionHardwareInterface )
pub fn with_hw_inteface( self, hardware_interface: TransmissionHardwareInterface ) -> Self
pub fn name(&self) -> &String
pub fn hw_interfaces(&self) -> &Vec<TransmissionHardwareInterface>
pub fn hw_interfaces_mut(&mut self) -> &mut Vec<TransmissionHardwareInterface>
Trait Implementations§
source§impl Clone for TransmissionJointBuilder
impl Clone for TransmissionJointBuilder
source§fn clone(&self) -> TransmissionJointBuilder
fn clone(&self) -> TransmissionJointBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TransmissionJointBuilder
impl Debug for TransmissionJointBuilder
source§impl Default for TransmissionJointBuilder
impl Default for TransmissionJointBuilder
source§fn default() -> TransmissionJointBuilder
fn default() -> TransmissionJointBuilder
Returns the “default value” for a type. Read more
source§impl<Name> From<(Name, TransmissionHardwareInterface)> for TransmissionJointBuilderwhere
Name: Into<String>,
impl<Name> From<(Name, TransmissionHardwareInterface)> for TransmissionJointBuilderwhere Name: Into<String>,
source§fn from(value: (Name, TransmissionHardwareInterface)) -> Self
fn from(value: (Name, TransmissionHardwareInterface)) -> Self
Converts to this type from the input type.
source§impl<Name> From<(Name, Vec<TransmissionHardwareInterface, Global>)> for TransmissionJointBuilderwhere
Name: Into<String>,
impl<Name> From<(Name, Vec<TransmissionHardwareInterface, Global>)> for TransmissionJointBuilderwhere Name: Into<String>,
source§fn from(value: (Name, Vec<TransmissionHardwareInterface>)) -> Self
fn from(value: (Name, Vec<TransmissionHardwareInterface>)) -> Self
Converts to this type from the input type.
source§impl PartialEq<TransmissionJointBuilder> for TransmissionJointBuilder
impl PartialEq<TransmissionJointBuilder> for TransmissionJointBuilder
source§fn eq(&self, other: &TransmissionJointBuilder) -> bool
fn eq(&self, other: &TransmissionJointBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TransmissionJointBuilder
Auto Trait Implementations§
impl RefUnwindSafe for TransmissionJointBuilder
impl Send for TransmissionJointBuilder
impl Sync for TransmissionJointBuilder
impl Unpin for TransmissionJointBuilder
impl UnwindSafe for TransmissionJointBuilder
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
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
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
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
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
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.