Struct syn_solidity::PragmaDirective
source · pub struct PragmaDirective {
pub pragma_token: pragma,
pub tokens: PragmaTokens,
pub semi_token: Semi,
}
Expand description
A pragma directive: pragma solidity ^0.8.0;
Fields§
§pragma_token: pragma
§tokens: PragmaTokens
§semi_token: Semi
Trait Implementations§
source§impl Clone for PragmaDirective
impl Clone for PragmaDirective
source§fn clone(&self) -> PragmaDirective
fn clone(&self) -> PragmaDirective
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 PragmaDirective
impl Debug for PragmaDirective
source§impl Display for PragmaDirective
impl Display for PragmaDirective
source§impl Parse for PragmaDirective
impl Parse for PragmaDirective
fn parse(input: ParseStream<'_>) -> Result<Self>
source§impl Spanned for PragmaDirective
impl Spanned for PragmaDirective
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 RefUnwindSafe for PragmaDirective
impl !Send for PragmaDirective
impl !Sync for PragmaDirective
impl Unpin for PragmaDirective
impl UnwindSafe for PragmaDirective
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