Enum boa::builtins::function::Function [−][src]
pub enum Function {
Native {
function: BuiltInFunction,
constructable: bool,
},
Closure {
function: Box<dyn ClosureFunction>,
constructable: bool,
captures: Captures,
},
Ordinary {
flags: FunctionFlags,
body: RcStatementList,
params: Box<[FormalParameter]>,
environment: Environment,
},
}Expand description
Boa representation of a Function Object.
FunctionBody is specific to this interpreter, it will either be Rust code or JavaScript code (AST Node)
Variants
Fields of Native
function: BuiltInFunctionconstructable: boolFields of Closure
Fields of Ordinary
Implementations
Returns true if the function object is constructable.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Function
impl !UnwindSafe for Function
Blanket Implementations
Mutably borrows from an owned value. Read more