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

pub enum FunctionBody {
    BuiltIn(NativeFunctionData),
    Ordinary(StatementList),
}

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

Variants

Ordinary(StatementList)

Trait Implementations

impl Clone for FunctionBody[src]

impl Debug for FunctionBody[src]

impl Eq for FunctionBody[src]

impl Finalize for FunctionBody[src]

impl PartialEq<FunctionBody> for FunctionBody[src]

impl Trace for FunctionBody[src]

Trace implementation for FunctionBody.

This is indeed safe, but we need to mark this as an empty trace because neither signal it manually. rust-gc does not have a Trace implementation for fn(_, _, _).

https://github.com/Manishearth/rust-gc/blob/master/gc/src/trace.rs

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> 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>,