pub struct ImportDirective {
pub import_token: import,
pub path: ImportPath,
pub semi_token: Semi,
}
Expand description
An import directive: import "foo.sol";
.
Solidity reference: https://docs.soliditylang.org/en/latest/grammar.html#a4.SolidityParser.importDirective
Fields§
§import_token: import
§path: ImportPath
§semi_token: Semi
Trait Implementations§
Source§impl Clone for ImportDirective
impl Clone for ImportDirective
Source§fn clone(&self) -> ImportDirective
fn clone(&self) -> ImportDirective
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 ImportDirective
impl Debug for ImportDirective
Source§impl Display for ImportDirective
impl Display for ImportDirective
Source§impl Parse for ImportDirective
impl Parse for ImportDirective
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl Spanned for ImportDirective
impl Spanned for ImportDirective
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 ImportDirective
impl RefUnwindSafe for ImportDirective
impl !Send for ImportDirective
impl !Sync for ImportDirective
impl Unpin for ImportDirective
impl UnwindSafe for ImportDirective
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