Struct syn_solidity::ImportPlain
source · pub struct ImportPlain {
pub path: LitStr,
pub alias: Option<ImportAlias>,
}
Expand description
A plain import directive: import "foo.sol" as Foo;
.
Fields§
§path: LitStr
§alias: Option<ImportAlias>
Trait Implementations§
source§impl Clone for ImportPlain
impl Clone for ImportPlain
source§fn clone(&self) -> ImportPlain
fn clone(&self) -> ImportPlain
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 ImportPlain
impl Debug for ImportPlain
source§impl Display for ImportPlain
impl Display for ImportPlain
source§impl Parse for ImportPlain
impl Parse for ImportPlain
fn parse(input: ParseStream<'_>) -> Result<Self>
source§impl Spanned for ImportPlain
impl Spanned for ImportPlain
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 ImportPlain
impl !Send for ImportPlain
impl !Sync for ImportPlain
impl Unpin for ImportPlain
impl UnwindSafe for ImportPlain
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