Enum rusty_v8::ConstructorBehavior[][src]

#[repr(C)]
pub enum ConstructorBehavior {
    Throw,
    Allow,
}
Expand description

ConstructorBehavior::Allow creates a regular API function.

ConstructorBehavior::Throw creates a “concise” API function, a function without a “.prototype” property, that is somewhat faster to create and has a smaller footprint. Functionally equivalent to ConstructorBehavior::Allow followed by a call to FunctionTemplate::RemovePrototype().

Variants

Throw
Allow

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.