#[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§
impl Copy for GCType
impl Eq for GCType
impl StructuralPartialEq for GCType
Auto Trait Implementations§
impl Freeze for GCType
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