pub trait FunctionFactory: Into<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§
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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.