Struct rusty_spine::SlotHandle
source · pub struct SlotHandle { /* private fields */ }
Expand description
Implementations§
source§impl 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(&self) -> Slot
pub unsafe fn get_unchecked(&self) -> Slot
§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 SlotHandle
impl Clone for SlotHandle
source§fn clone(&self) -> SlotHandle
fn clone(&self) -> SlotHandle
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 SlotHandle
impl Debug for SlotHandle
source§impl PartialEq for SlotHandle
impl PartialEq for SlotHandle
source§fn eq(&self, other: &SlotHandle) -> bool
fn eq(&self, other: &SlotHandle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SlotHandle
impl Eq for SlotHandle
impl StructuralPartialEq for SlotHandle
Auto Trait Implementations§
impl Freeze for SlotHandle
impl RefUnwindSafe for SlotHandle
impl Send for SlotHandle
impl Sync for SlotHandle
impl Unpin for SlotHandle
impl UnwindSafe for SlotHandle
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