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