pub struct ImportAlias {
pub as_token: As,
pub alias: SolIdent,
}
Expand description
An import alias.
Fields§
§as_token: As
§alias: SolIdent
Implementations§
Source§impl ImportAlias
impl ImportAlias
pub fn parse_opt(input: ParseStream<'_>) -> Result<Option<Self>>
Trait Implementations§
Source§impl Clone for ImportAlias
impl Clone for ImportAlias
Source§fn clone(&self) -> ImportAlias
fn clone(&self) -> ImportAlias
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 ImportAlias
impl Debug for ImportAlias
Source§impl Display for ImportAlias
impl Display for ImportAlias
Source§impl Parse for ImportAlias
impl Parse for ImportAlias
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl Spanned for ImportAlias
impl Spanned for ImportAlias
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 ImportAlias
impl RefUnwindSafe for ImportAlias
impl !Send for ImportAlias
impl !Sync for ImportAlias
impl Unpin for ImportAlias
impl UnwindSafe for ImportAlias
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