Struct rusty_spine::BoneHandle
source · pub struct BoneHandle { /* private fields */ }Expand description
Implementations§
source§impl BoneHandle
impl BoneHandle
sourcepub fn get<'a>(
&self,
parent: &'a Skeleton
) -> Option<CTmpRef<'a, Skeleton, Bone>>
pub fn get<'a>( &self, parent: &'a Skeleton ) -> Option<CTmpRef<'a, Skeleton, Bone>>
Safely acquired the item, verifying its existence using its parent.
sourcepub fn get_mut<'a>(
&self,
parent: &'a mut Skeleton
) -> Option<CTmpMut<'a, Skeleton, Bone>>
pub fn get_mut<'a>( &self, parent: &'a mut Skeleton ) -> Option<CTmpMut<'a, Skeleton, Bone>>
Safely acquired the item, verifying its existence using its parent.
sourcepub unsafe fn get_unchecked<'a>(&self) -> Bone
pub unsafe fn get_unchecked<'a>(&self) -> Bone
Safety
Acquire the item without any checks. This is a direct pointer access which is fast but will segfault if the data has been disposed of already.
Trait Implementations§
source§impl Clone for BoneHandle
impl Clone for BoneHandle
source§fn clone(&self) -> BoneHandle
fn clone(&self) -> BoneHandle
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 BoneHandle
impl Debug for BoneHandle
source§impl PartialEq<BoneHandle> for BoneHandle
impl PartialEq<BoneHandle> for BoneHandle
source§fn eq(&self, other: &BoneHandle) -> bool
fn eq(&self, other: &BoneHandle) -> bool
This method tests for
self and other values to be equal, and is used
by ==.