Struct js::jsapi::AutoCheckCannotGC [] [src]

#[repr(C)]
pub struct AutoCheckCannotGC { pub _base: AutoAssertOnGC, }

Place AutoCheckCannotGC in scopes that you believe can never GC. These annotations will be verified both dynamically via AutoAssertOnGC, and statically with the rooting hazard analysis (implemented by making the analysis consider AutoCheckCannotGC to be a GC pointer, and therefore complain if it is live across a GC call.) It is useful when dealing with internal pointers to GC things where the GC thing itself may not be present for the static analysis: e.g. acquiring inline chars from a JSString* on the heap.

Fields

Trait Implementations

impl Debug for AutoCheckCannotGC
[src]

[src]

Formats the value using the given formatter.