pub struct NoGC(());Expand description
Token that ensures that no GC can happen while it is alive.
This type is similar to &JSContext,
but it is used in cases where no actual context is needed.
For more info and examples see JSContext.
This type can be obtained from JSContext (and will be bounded to it) or constructed from thin air (unsafe).
ⓘ
fn f() {
// safe construction is not possible
mozjs::context::NoGC(());
}Tuple Fields§
§0: ()Implementations§
Auto Trait Implementations§
impl Freeze for NoGC
impl RefUnwindSafe for NoGC
impl Send for NoGC
impl Sync for NoGC
impl Unpin for NoGC
impl UnsafeUnpin for NoGC
impl UnwindSafe for NoGC
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> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more