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: IdentTrait 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 UnsafeUnpin 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