pub struct LinkBuilder { /* private fields */ }
Implementations§
source§impl LinkBuilder
impl LinkBuilder
sourcepub fn new(name: impl Into<String>) -> LinkBuilder
pub fn new(name: impl Into<String>) -> LinkBuilder
TODO: depreaction Planned
pub fn add_visual(self, visual: VisualBuilder) -> Self
sourcepub fn add_collider(self, collider: CollisionBuilder) -> Self
pub fn add_collider(self, collider: CollisionBuilder) -> Self
TODO: Not really sure if this is the way… but it is how clap does it.
sourcepub fn add_intertial(self, inertial: InertialData) -> Self
pub fn add_intertial(self, inertial: InertialData) -> Self
TODO: Naming not inline with convention
Not happy with the added add_
but otherwise name colliding with getter
sourcepub fn build_tree(self) -> KinematicTree
pub fn build_tree(self) -> KinematicTree
FIXME: This is temporary, since BuildLink is now a private trait I think this might be fine
source§impl LinkBuilder
impl LinkBuilder
Non-builder methods
pub fn name(&self) -> &String
pub fn visuals(&self) -> &Vec<VisualBuilder>
pub fn visuals_mut(&mut self) -> &mut Vec<VisualBuilder>
pub fn colliders(&self) -> &Vec<CollisionBuilder>
pub fn colliders_mut(&mut self) -> &mut Vec<CollisionBuilder>
pub fn joints(&self) -> &Vec<JointBuilder>
pub fn inertial(&self) -> Option<&InertialData>
Trait Implementations§
source§impl Clone for LinkBuilder
impl Clone for LinkBuilder
source§fn clone(&self) -> LinkBuilder
fn clone(&self) -> LinkBuilder
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 LinkBuilder
impl Debug for LinkBuilder
source§impl Default for LinkBuilder
impl Default for LinkBuilder
source§fn default() -> LinkBuilder
fn default() -> LinkBuilder
Returns the “default value” for a type. Read more
source§impl From<Chained<LinkBuilder>> for LinkBuilder
impl From<Chained<LinkBuilder>> for LinkBuilder
source§fn from(value: Chained<LinkBuilder>) -> Self
fn from(value: Chained<LinkBuilder>) -> Self
Converts to this type from the input type.
source§impl From<LinkBuilder> for Chained<LinkBuilder>
impl From<LinkBuilder> for Chained<LinkBuilder>
Since Link’s can end a chain, a LinkBuilder
can always be converted to a Chained<LinkBuilder>
source§fn from(value: LinkBuilder) -> Self
fn from(value: LinkBuilder) -> Self
Converts to this type from the input type.
source§impl GroupIDChanger for LinkBuilder
impl GroupIDChanger for LinkBuilder
source§unsafe fn change_group_id_unchecked(&mut self, new_group_id: &str)
unsafe fn change_group_id_unchecked(&mut self, new_group_id: &str)
source§fn apply_group_id(&mut self)
fn apply_group_id(&mut self)
Applies
GroupID
delimiter replacements. Read moresource§fn change_group_id(
&mut self,
new_group_id: impl GroupID
) -> Result<(), GroupIDError>
fn change_group_id( &mut self, new_group_id: impl GroupID ) -> Result<(), GroupIDError>
source§impl PartialEq<LinkBuilder> for LinkBuilder
impl PartialEq<LinkBuilder> for LinkBuilder
source§fn eq(&self, other: &LinkBuilder) -> bool
fn eq(&self, other: &LinkBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LinkBuilder
Auto Trait Implementations§
impl !RefUnwindSafe for LinkBuilder
impl Send for LinkBuilder
impl Sync for LinkBuilder
impl Unpin for LinkBuilder
impl !UnwindSafe for LinkBuilder
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.