[][src]Enum boa::builtins::function::Function

pub enum Function {
    BuiltIn(BuiltInFunctionFunctionFlags),
    Ordinary {
        flags: FunctionFlags,
        body: RcStatementList,
        params: Box<[FormalParameter]>,
        environment: Environment,
    },
}

Boa representation of a Function Object.

FunctionBody is specific to this interpreter, it will either be Rust code or JavaScript code (AST Node)

https://tc39.es/ecma262/#sec-ecmascript-function-objects

Variants

Ordinary

Fields of Ordinary

flags: FunctionFlagsbody: RcStatementListparams: Box<[FormalParameter]>environment: Environment

Implementations

impl Function[src]

pub fn is_callable(&self) -> bool[src]

Returns true if the function object is callable.

pub fn is_constructable(&self) -> bool[src]

Returns true if the function object is constructable.

Trait Implementations

impl Clone for Function[src]

impl Debug for Function[src]

impl Drop for Function[src]

impl Finalize for Function[src]

impl Trace for Function[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> NativeObject for T where
    T: Any + Debug + Trace
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,