pub struct Chained<Builder: ChainableBuilder>(/* private fields */);
Expand description
A Wrapper to indicate if the current builder is a chain.
TODO: EXPAND
Implementations§
Source§impl Chained<JointBuilder>
impl Chained<JointBuilder>
Sourcepub fn mirror(&self, axis: MirrorAxis) -> Chained<JointBuilder>
pub fn mirror(&self, axis: MirrorAxis) -> Chained<JointBuilder>
TODO: TEST TODO: DOC
Source§impl Chained<LinkBuilder>
impl Chained<LinkBuilder>
Sourcepub fn mirror(&self, axis: MirrorAxis) -> Chained<LinkBuilder>
pub fn mirror(&self, axis: MirrorAxis) -> Chained<LinkBuilder>
TODO: More tests TODO: DOC
Trait Implementations§
Source§impl<JointB, LinkB> From<(JointB, LinkB)> for Chained<JointBuilder>
impl<JointB, LinkB> From<(JointB, LinkB)> for Chained<JointBuilder>
Source§fn from(value: (JointB, LinkB)) -> Self
fn from(value: (JointB, LinkB)) -> Self
Converts to this type from the input type.
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<KI> From<KI> for Chained<LinkBuilder>where
KI: KinematicInterface,
impl<KI> From<KI> for Chained<LinkBuilder>where
KI: KinematicInterface,
Source§impl From<LinkBuilder> for Chained<LinkBuilder>
Since Link’s can end a chain, a LinkBuilder
can always be converted to a 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.
impl<Builder: ChainableBuilder> StructuralPartialEq for Chained<Builder>
Auto Trait Implementations§
impl<Builder> Freeze for Chained<Builder>where
Builder: Freeze,
impl<Builder> RefUnwindSafe for Chained<Builder>where
Builder: RefUnwindSafe,
impl<Builder> Send for Chained<Builder>where
Builder: Send,
impl<Builder> Sync for Chained<Builder>where
Builder: Sync,
impl<Builder> Unpin for Chained<Builder>where
Builder: Unpin,
impl<Builder> UnwindSafe for Chained<Builder>where
Builder: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.