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

Trait Implementations

impl Debug for AllowGC
[src]

[src]

Formats the value using the given formatter.

impl Copy for AllowGC
[src]

impl Clone for AllowGC
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for AllowGC
[src]

impl PartialEq for AllowGC
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Hash for AllowGC
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more