Struct wasm_bindgen_backend::ast::LinkToModule
source · pub struct LinkToModule(pub Program);
Expand description
An abstract syntax tree representing a link to a module in Rust. In contrast to Program, LinkToModule must expand to an expression. linked_modules of the inner Program must contain exactly one element whose link is produced by the expression.
Tuple Fields§
§0: Program
Trait Implementations§
source§impl TryToTokens for LinkToModule
impl TryToTokens for LinkToModule
source§fn try_to_tokens(&self, tokens: &mut TokenStream) -> Result<(), Diagnostic>
fn try_to_tokens(&self, tokens: &mut TokenStream) -> Result<(), Diagnostic>
Attempt to convert a
Self
into tokens and add it to the TokenStream
source§fn try_to_token_stream(&self) -> Result<TokenStream, Diagnostic>
fn try_to_token_stream(&self) -> Result<TokenStream, Diagnostic>
Attempt to convert a
Self
into a new TokenStream