pub struct NapiFn {
Show 17 fields 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, pub js_mod: Option<String>, pub ts_args_type: Option<String>, pub ts_return_type: Option<String>, pub skip_typescript: bool, pub comments: Vec<String>,
}

Fields

name: Identjs_name: Stringattrs: Vec<Attribute>args: Vec<NapiFnArgKind>ret: Option<Type>is_ret_result: boolis_async: boolfn_self: Option<FnSelf>kind: FnKindvis: Visibilityparent: Option<Ident>strict: booljs_mod: Option<String>ts_args_type: Option<String>ts_return_type: Option<String>skip_typescript: boolcomments: Vec<String>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.