Struct wasm_bindgen_backend::ast::Const [−][src]
pub struct Const {
pub vis: Visibility,
pub name: Ident,
pub class: Option<Ident>,
pub ty: Type,
pub value: ConstValue,
}Fields
vis: Visibility
name: Ident
class: Option<Ident>
ty: Type
value: ConstValue
Trait Implementations
impl Clone for Const[src]
impl Clone for Constfn clone(&self) -> Const[src]
fn clone(&self) -> ConstReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl ToTokens for Const[src]
impl ToTokens for Constfn to_tokens(&self, tokens: &mut TokenStream)[src]
fn to_tokens(&self, tokens: &mut TokenStream)Write self to the given TokenStream. Read more
fn into_token_stream(self) -> TokenStream[src]
fn into_token_stream(self) -> TokenStreamConvert self directly into a TokenStream object. Read more
impl ImportedTypes for Const[src]
impl ImportedTypes for Constfn imported_types<F>(&self, f: &mut F) where
F: FnMut(&Ident, ImportedTypeKind), [src]
fn imported_types<F>(&self, f: &mut F) where
F: FnMut(&Ident, ImportedTypeKind),