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 Clone for LinkToModule
impl Clone for LinkToModule
source§fn clone(&self) -> LinkToModule
fn clone(&self) -> LinkToModule
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§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 Freeze for LinkToModule
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)