pub enum ImportPath {
Plain(ImportPlain),
Aliases(ImportAliases),
Glob(ImportGlob),
}
Expand description
The path of an import directive.
Variants§
Plain(ImportPlain)
A plain import directive: import "foo.sol" as Foo;
.
Aliases(ImportAliases)
A list of import aliases: import { Foo as Bar, Baz } from "foo.sol";
.
Glob(ImportGlob)
A glob import directive: import * as Foo from "foo.sol";
.
Implementations§
Trait Implementations§
Source§impl Clone for ImportPath
impl Clone for ImportPath
Source§fn clone(&self) -> ImportPath
fn clone(&self) -> ImportPath
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 ImportPath
impl Debug for ImportPath
Source§impl Display for ImportPath
impl Display for ImportPath
Source§impl Parse for ImportPath
impl Parse for ImportPath
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl Spanned for ImportPath
impl Spanned for ImportPath
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 ImportPath
impl RefUnwindSafe for ImportPath
impl !Send for ImportPath
impl !Sync for ImportPath
impl Unpin for ImportPath
impl UnwindSafe for ImportPath
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