pub struct Joint { /* private fields */ }
Implementations§
Source§impl Joint
impl Joint
pub fn name(&self) -> &String
pub fn joint_type(&self) -> JointType
Sourcepub fn parent_link(&self) -> Arc<RwLock<Link>>
pub fn parent_link(&self) -> Arc<RwLock<Link>>
Returns a reference to the parent Link
TODO: ADD EXAMPLE
For now pub crate, this should maybe go to joint trait
Sourcepub fn child_link(&self) -> Arc<RwLock<Link>>
pub fn child_link(&self) -> Arc<RwLock<Link>>
For now pub crate, this should maybe go to joint trait Is this even necessary?
pub fn transform(&self) -> &Transform
pub fn axis(&self) -> Option<(f32, f32, f32)>
Sourcepub fn rebuild(&self) -> JointBuilder
pub fn rebuild(&self) -> JointBuilder
Make a JointBuilder
to build a ‘Clone’ of the Joint
.
This method does not clone the child of the Joint
, only the Joint
is self.
If the whole branch needs to be copied use rebuild_branch
.
pub fn rebuild_branch( &self, ) -> Result<Chained<JointBuilder>, RebuildBranchError>
Sourcepub fn get_self(&self) -> Arc<RwLock<Joint>>
pub fn get_self(&self) -> Arc<RwLock<Joint>>
Gets a (strong) refence to the current Joint
. (An Arc<RwLock<Joint>>
)
Sourcepub fn get_weak_self(&self) -> Weak<RwLock<Joint>>
pub fn get_weak_self(&self) -> Weak<RwLock<Joint>>
Gets a weak refence to the current Joint
. (An Weak<RwLock<Joint>>
)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Joint
impl RefUnwindSafe for Joint
impl Send for Joint
impl Sync for Joint
impl Unpin for Joint
impl UnwindSafe for Joint
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> 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.