#[repr(C)]pub enum ConstructorBehavior {
Throw = 0,
Allow = 1,
}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§
Auto Trait Implementations§
impl Freeze for ConstructorBehavior
impl RefUnwindSafe for ConstructorBehavior
impl Send for ConstructorBehavior
impl Sync for ConstructorBehavior
impl Unpin for ConstructorBehavior
impl UnsafeUnpin for ConstructorBehavior
impl UnwindSafe for ConstructorBehavior
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more