Struct syn_solidity::ImportDirective
source · 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 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