Struct rusty_spine::c_interface::CTmpRef
source · pub struct CTmpRef<'a, P, T> { /* private fields */ }
Expand description
A reference type to temporarily borrow two types at once, ensuring a parent’s lifetime remains valid throughout the lifetime of the child.
A lot of relationships are implicitly represented throughout the codebase, since their actual relationship exists within transpiled C code. This struct allows creating a temporary link the borrow checker can use to ensure correctness.
Implementations§
source§impl<'a> CTmpRef<'a, AnimationState, TrackEntry>
impl<'a> CTmpRef<'a, AnimationState, TrackEntry>
pub fn handle(&self) -> TrackEntryHandle
source§impl<'a> CTmpRef<'a, SkeletonData, Skin>
impl<'a> CTmpRef<'a, SkeletonData, Skin>
pub fn handle(&self) -> SkinHandle
Trait Implementations§
Auto Trait Implementations§
impl<'a, P, T> Freeze for CTmpRef<'a, P, T>where
T: Freeze,
impl<'a, P, T> RefUnwindSafe for CTmpRef<'a, P, T>where
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, P, T> Send for CTmpRef<'a, P, T>
impl<'a, P, T> Sync for CTmpRef<'a, P, T>
impl<'a, P, T> Unpin for CTmpRef<'a, P, T>where
T: Unpin,
impl<'a, P, T> UnwindSafe for CTmpRef<'a, P, T>where
P: RefUnwindSafe,
T: 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