Struct v8::FunctionBuilder

source ·
pub struct FunctionBuilder<'s, T> { /* private fields */ }
Expand description

A builder to construct the properties of a Function or FunctionTemplate.

Implementations§

Create a new FunctionBuilder.

Set the associated data. The default is no associated data.

Set the function length. The default is 0.

Set the constructor behavior. The default is ConstructorBehavior::Allow.

Set the side effect type. The default is SideEffectType::HasSideEffect.

Create the function in the current execution context.

Set the function call signature. The default is no signature.

Creates the function template.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.