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 Freeze for ImportPlain
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
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
)