Enum js::jsapi::AllowGC
[−]
[src]
#[repr(u32)]pub enum AllowGC { NoGC, CanGC, }
Types for a variable that either should or shouldn't be rooted, depending on the template parameter allowGC. Used for implementing functions that can operate on either rooted or unrooted data.
The toHandle() and toMutableHandle() functions are for calling functions which require handle types and are only called in the CanGC case. These allow the calling code to type check.
Variants
NoGC
CanGC
Trait Implementations
impl Debug for AllowGC
[src]
impl Copy for AllowGC
[src]
impl Clone for AllowGC
[src]
fn clone(&self) -> AllowGC
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for AllowGC
[src]
impl PartialEq for AllowGC
[src]
fn eq(&self, __arg_0: &AllowGC) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.