Struct red4ext_rs::types::WeakRef
source · pub struct WeakRef<T: ScriptClass>(/* private fields */);
Expand description
A weak reference to a script class.
Before use, it must be upgraded to a strong reference using WeakRef::upgrade
.
Implementations§
Trait Implementations§
source§impl<T: ScriptClass> Clone for WeakRef<T>
impl<T: ScriptClass> Clone for WeakRef<T>
source§impl<T: ScriptClass> Default for WeakRef<T>
impl<T: ScriptClass> Default for WeakRef<T>
source§impl<T: ScriptClass> Drop for WeakRef<T>
impl<T: ScriptClass> Drop for WeakRef<T>
source§impl<A: ScriptClass> NativeRepr for WeakRef<A>
impl<A: ScriptClass> NativeRepr for WeakRef<A>
impl<T: ScriptClass> Send for WeakRef<T>
impl<T: ScriptClass> Sync for WeakRef<T>
Auto Trait Implementations§
impl<T> Freeze for WeakRef<T>
impl<T> !RefUnwindSafe for WeakRef<T>
impl<T> Unpin for WeakRef<T>
impl<T> UnwindSafe for WeakRef<T>
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