Struct napi_derive_backend::ast::NapiImpl
source · pub struct NapiImpl {
pub name: Ident,
pub js_name: String,
pub items: Vec<NapiFn>,
pub task_output_type: Option<Type>,
pub iterator_yield_type: Option<Type>,
pub iterator_next_type: Option<Type>,
pub iterator_return_type: Option<Type>,
pub js_mod: Option<String>,
pub comments: Vec<String>,
pub register_name: Ident,
}
Fields§
§name: Ident
§js_name: String
§items: Vec<NapiFn>
§task_output_type: Option<Type>
§iterator_yield_type: Option<Type>
§iterator_next_type: Option<Type>
§iterator_return_type: Option<Type>
§js_mod: Option<String>
§comments: Vec<String>
§register_name: Ident
Trait Implementations§
source§impl TryToTokens for NapiImpl
impl TryToTokens for NapiImpl
fn try_to_tokens(&self, tokens: &mut TokenStream) -> BindgenResult<()>
fn try_to_token_stream(&self) -> BindgenResult<TokenStream>
Auto Trait Implementations§
impl Freeze for NapiImpl
impl RefUnwindSafe for NapiImpl
impl !Send for NapiImpl
impl !Sync for NapiImpl
impl Unpin for NapiImpl
impl UnwindSafe for NapiImpl
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)