Struct rusty_spine::SlotHandle
source · [−]pub struct SlotHandle { /* private fields */ }
Expand description
Implementations
sourceimpl SlotHandle
impl SlotHandle
sourcepub fn get<'a>(
&self,
parent: &'a Skeleton
) -> Option<CTmpRef<'a, Skeleton, Slot>>
pub fn get<'a>(
&self,
parent: &'a Skeleton
) -> Option<CTmpRef<'a, Skeleton, Slot>>
Safely acquired the item, verifying its existence using its parent.
sourcepub fn get_mut<'a>(
&self,
parent: &'a mut Skeleton
) -> Option<CTmpMut<'a, Skeleton, Slot>>
pub fn get_mut<'a>(
&self,
parent: &'a mut Skeleton
) -> Option<CTmpMut<'a, Skeleton, Slot>>
Safely acquired the item, verifying its existence using its parent.
sourcepub unsafe fn get_unchecked<'a>(&self) -> Slot
pub unsafe fn get_unchecked<'a>(&self) -> Slot
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
sourceimpl Clone for SlotHandle
impl Clone for SlotHandle
sourcefn clone(&self) -> SlotHandle
fn clone(&self) -> SlotHandle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SlotHandle
impl Debug for SlotHandle
sourceimpl PartialEq<SlotHandle> for SlotHandle
impl PartialEq<SlotHandle> for SlotHandle
sourcefn eq(&self, other: &SlotHandle) -> bool
fn eq(&self, other: &SlotHandle) -> bool
impl Copy for SlotHandle
impl Eq for SlotHandle
impl StructuralEq for SlotHandle
impl StructuralPartialEq for SlotHandle
Auto Trait Implementations
impl RefUnwindSafe for SlotHandle
impl Send for SlotHandle
impl Sync for SlotHandle
impl Unpin for SlotHandle
impl UnwindSafe for SlotHandle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more