#[repr(C)]pub struct GCType(/* private fields */);
Expand description
Applications can register callback functions which will be called before and after certain garbage collection operations. Allocations are not allowed in the callback functions, you therefore cannot manipulate objects (set or delete properties for example) since it is possible such operations will result in the allocation of objects.
Implementations§
source§impl GCType
impl GCType
pub const SCAVENGE: Self = _
pub const MINOR_MARK_COMPACT: Self = _
pub const MARK_SWEEP_COMPACT: Self = _
pub const INCREMENTAL_MARKING: Self = _
pub const PROCESS_WEAK_CALLBACKS: Self = _
pub const ALL: Self = _
Trait Implementations§
source§impl PartialEq for GCType
impl PartialEq for GCType
impl Copy for GCType
impl Eq for GCType
impl StructuralEq for GCType
impl StructuralPartialEq for GCType
Auto Trait Implementations§
impl RefUnwindSafe for GCType
impl Send for GCType
impl Sync for GCType
impl Unpin for GCType
impl UnwindSafe for GCType
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