Trait swc_ecma_utils::FunctionFactory

source ·
pub trait FunctionFactory: Into<Box<Function>> {
    // Provided methods
    fn into_fn_expr(self, ident: Option<Ident>) -> FnExpr { ... }
    fn into_fn_decl(self, ident: Ident) -> FnDecl { ... }
    fn into_method_prop(self, key: PropName) -> MethodProp { ... }
}

Provided Methods§

source

fn into_fn_expr(self, ident: Option<Ident>) -> FnExpr

source

fn into_fn_decl(self, ident: Ident) -> FnDecl

source

fn into_method_prop(self, key: PropName) -> MethodProp

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Into<Box<Function>>> FunctionFactory for T