pub struct WeakRef<T: GcCell> { /* private fields */ }
Expand description
Weak reference wrapper.
Implementations§
Trait Implementations§
Source§impl<T: GcCell> TraceTrait for WeakRef<T>
impl<T: GcCell> TraceTrait for WeakRef<T>
Source§fn trace(&self, vis: &mut Visitor)
fn trace(&self, vis: &mut Visitor)
Function invoking the tracing for an object of type
T
. Read moreSource§extern "C" fn trace_(vis: *mut Visitor, this: *const u8)
extern "C" fn trace_(vis: *mut Visitor, this: *const u8)
trace_
method is used for C FFI safety.Source§fn get_trace_descriptor(this: *const u8) -> TraceDescriptor
fn get_trace_descriptor(this: *const u8) -> TraceDescriptor
Returns trace descriptor for type that implements this trait. Not recommended to override it.
impl<T: GcCell> Copy for WeakRef<T>
Auto Trait Implementations§
impl<T> Freeze for WeakRef<T>
impl<T> RefUnwindSafe for WeakRef<T>where
T: RefUnwindSafe,
impl<T> !Send for WeakRef<T>
impl<T> !Sync for WeakRef<T>
impl<T> Unpin for WeakRef<T>where
T: Unpin,
impl<T> UnwindSafe for WeakRef<T>where
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