pub enum ExternName<'a> {
Ident(Ident<'a>),
String(String<'a>),
}
Expand description
Represents an extern name following an as
clause in the AST.
Variants§
Implementations§
Source§impl ExternName<'_>
impl ExternName<'_>
Trait Implementations§
Source§impl<'a> Clone for ExternName<'a>
impl<'a> Clone for ExternName<'a>
Source§fn clone(&self) -> ExternName<'a>
fn clone(&self) -> ExternName<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for ExternName<'a>
impl<'a> Debug for ExternName<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExternName<'a>
impl<'a> RefUnwindSafe for ExternName<'a>
impl<'a> Send for ExternName<'a>
impl<'a> Sync for ExternName<'a>
impl<'a> Unpin for ExternName<'a>
impl<'a> UnwindSafe for ExternName<'a>
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