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: ProgramTrait 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 TokenStreamSource§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 TokenStreamAuto 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