pub enum PragmaTokens {
Version(solidity, TokenStream),
Abicoder(abicoder, SolIdent),
Experimental(experimental, SolIdent),
Verbatim(TokenStream),
}
Variants§
Version(solidity, TokenStream)
Abicoder(abicoder, SolIdent)
Experimental(experimental, SolIdent)
Verbatim(TokenStream)
Trait Implementations§
Source§impl Clone for PragmaTokens
impl Clone for PragmaTokens
Source§fn clone(&self) -> PragmaTokens
fn clone(&self) -> PragmaTokens
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 Debug for PragmaTokens
impl Debug for PragmaTokens
Source§impl Display for PragmaTokens
impl Display for PragmaTokens
Source§impl Parse for PragmaTokens
impl Parse for PragmaTokens
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl Spanned for PragmaTokens
impl Spanned for PragmaTokens
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.Auto Trait Implementations§
impl Freeze for PragmaTokens
impl RefUnwindSafe for PragmaTokens
impl !Send for PragmaTokens
impl !Sync for PragmaTokens
impl Unpin for PragmaTokens
impl UnwindSafe for PragmaTokens
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