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
Auto Trait Implementations§
impl RefUnwindSafe for LinkToModule
impl !Send for LinkToModule
impl !Sync for LinkToModule
impl Unpin for LinkToModule
impl UnwindSafe for LinkToModule
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