pub struct WeakSlot { /* private fields */ }
Trait Implementations§
Source§impl FinalizeTrait<WeakSlot> for WeakSlot
impl FinalizeTrait<WeakSlot> for WeakSlot
Source§const NON_TRIVIAL_DTOR: bool = _
const NON_TRIVIAL_DTOR: bool = _
If true finalizer is executed at the end of GC cycle for this type.
In most cases compiler should be smart enough to determine if
NON_TRIVIAL_DTOR
is true
but in some rare unsafe cases you might set it to false
by yourself.Source§impl TraceTrait for WeakSlot
impl TraceTrait for WeakSlot
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.
Auto Trait Implementations§
impl Freeze for WeakSlot
impl RefUnwindSafe for WeakSlot
impl !Send for WeakSlot
impl !Sync for WeakSlot
impl Unpin for WeakSlot
impl UnwindSafe for WeakSlot
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
Source§impl<T> GCInfoTrait<T> for Twhere
T: TraceTrait + FinalizeTrait<T> + 'static,
impl<T> GCInfoTrait<T> for Twhere
T: TraceTrait + FinalizeTrait<T> + 'static,
const REGISTERED_INDEX: AtomicU16
Source§fn index() -> GCInfoIndex
fn index() -> GCInfoIndex
Returns index of GCInfo in GCInfoTable.