Enum v8::ConstructorBehavior
source · [−]#[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
impl RefUnwindSafe for ConstructorBehavior
impl Send for ConstructorBehavior
impl Sync for ConstructorBehavior
impl Unpin for ConstructorBehavior
impl UnwindSafe for ConstructorBehavior
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more