pub struct NapiStruct {
pub name: Ident,
pub js_name: String,
pub comments: Vec<String>,
pub js_mod: Option<String>,
pub use_nullable: bool,
pub register_name: Ident,
pub kind: NapiStructKind,
pub has_lifetime: bool,
pub is_generator: bool,
pub is_async_generator: bool,
}Fields§
§name: Ident§js_name: String§comments: Vec<String>§js_mod: Option<String>§use_nullable: bool§register_name: Ident§kind: NapiStructKind§has_lifetime: bool§is_generator: bool§is_async_generator: boolTrait Implementations§
Source§impl Clone for NapiStruct
impl Clone for NapiStruct
Source§fn clone(&self) -> NapiStruct
fn clone(&self) -> NapiStruct
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NapiStruct
impl Debug for NapiStruct
Source§impl TryToTokens for NapiStruct
impl TryToTokens for NapiStruct
fn try_to_tokens(&self, tokens: &mut TokenStream) -> BindgenResult<()>
fn try_to_token_stream(&self) -> BindgenResult<TokenStream>
Auto Trait Implementations§
impl Freeze for NapiStruct
impl RefUnwindSafe for NapiStruct
impl !Send for NapiStruct
impl !Sync for NapiStruct
impl Unpin for NapiStruct
impl UnsafeUnpin for NapiStruct
impl UnwindSafe for NapiStruct
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