Struct napi_derive_backend::ast::NapiEnum
source · pub struct NapiEnum {
pub name: Ident,
pub js_name: String,
pub variants: Vec<NapiEnumVariant>,
pub js_mod: Option<String>,
pub comments: Vec<String>,
pub skip_typescript: bool,
pub register_name: Ident,
}
Fields§
§name: Ident
§js_name: String
§variants: Vec<NapiEnumVariant>
§js_mod: Option<String>
§comments: Vec<String>
§skip_typescript: bool
§register_name: Ident
Trait Implementations§
source§impl TryToTokens for NapiEnum
impl TryToTokens for NapiEnum
fn try_to_tokens(&self, tokens: &mut TokenStream) -> BindgenResult<()>
fn try_to_token_stream(&self) -> BindgenResult<TokenStream>
Auto Trait Implementations§
impl Freeze for NapiEnum
impl RefUnwindSafe for NapiEnum
impl !Send for NapiEnum
impl !Sync for NapiEnum
impl Unpin for NapiEnum
impl UnwindSafe for NapiEnum
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
)