Struct napi_derive_backend::ast::NapiFn [−][src]
pub struct NapiFn {
pub name: Ident,
pub js_name: String,
pub attrs: Vec<Attribute>,
pub args: Vec<NapiFnArgKind>,
pub ret: Option<Type>,
pub is_ret_result: bool,
pub is_async: bool,
pub fn_self: Option<FnSelf>,
pub kind: FnKind,
pub vis: Visibility,
pub parent: Option<Ident>,
pub strict: bool,
}
Fields
name: Ident
js_name: String
attrs: Vec<Attribute>
args: Vec<NapiFnArgKind>
ret: Option<Type>
is_ret_result: bool
is_async: bool
fn_self: Option<FnSelf>
kind: FnKind
vis: Visibility
parent: Option<Ident>
strict: bool
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NapiFn
impl UnwindSafe for NapiFn
Blanket Implementations
Mutably borrows from an owned value. Read more