Struct mozjs::jsapi::JS::AutoDisableGenerationalGC
source · #[repr(C)]pub struct AutoDisableGenerationalGC {
pub cx: *mut JSContext,
}
Expand description
Ensure that generational GC is disabled within some scope.
This evicts the nursery and discards JIT code so it is not a lightweight operation.
Fields§
§cx: *mut JSContext
Trait Implementations§
source§impl Debug for AutoDisableGenerationalGC
impl Debug for AutoDisableGenerationalGC
source§impl PartialEq<AutoDisableGenerationalGC> for AutoDisableGenerationalGC
impl PartialEq<AutoDisableGenerationalGC> for AutoDisableGenerationalGC
source§fn eq(&self, other: &AutoDisableGenerationalGC) -> bool
fn eq(&self, other: &AutoDisableGenerationalGC) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AutoDisableGenerationalGC
Auto Trait Implementations§
impl RefUnwindSafe for AutoDisableGenerationalGC
impl !Send for AutoDisableGenerationalGC
impl !Sync for AutoDisableGenerationalGC
impl Unpin for AutoDisableGenerationalGC
impl UnwindSafe for AutoDisableGenerationalGC
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