#[repr(C)]pub struct GCInfo {
pub finalize: Option<extern "C" fn(*mut u8)>,
pub trace: extern "C" fn(*mut Visitor, *const u8),
pub vtable: usize,
}
Expand description
GCInfo contains metadata for objects that implement GCInfoTrait
.
Fields§
§finalize: Option<extern "C" fn(*mut u8)>
Finalization callback
trace: extern "C" fn(*mut Visitor, *const u8)
Tracing callback
vtable: usize
Additional vtable pointer. This is not used in any way by Comet but might be used by programmers to store vtable by runtimes without occupying additional 8/4 bytes of space in allocation itself.
Auto Trait Implementations§
impl Freeze for GCInfo
impl RefUnwindSafe for GCInfo
impl Send for GCInfo
impl Sync for GCInfo
impl Unpin for GCInfo
impl UnwindSafe for GCInfo
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