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 Freeze for PragmaDirective
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)