pub enum Ident<'a, 'f> {
Short {
id: Spanned<'f, &'a str>,
pragmas: Vec<(&'a str, &'a str)>,
},
Long(Spanned<'f, &'a str>, Box<Ident<'a, 'f>>),
}
Expand description
An identifier
Variants§
Short
A short identifier: just a single “word”
It may have “pragmas” next to it, to give it special properties
Long(Spanned<'f, &'a str>, Box<Ident<'a, 'f>>)
A long ID: a package name followed by another identifier
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'f> Freeze for Ident<'a, 'f>
impl<'a, 'f> RefUnwindSafe for Ident<'a, 'f>
impl<'a, 'f> Send for Ident<'a, 'f>
impl<'a, 'f> Sync for Ident<'a, 'f>
impl<'a, 'f> Unpin for Ident<'a, 'f>
impl<'a, 'f> UnwindSafe for Ident<'a, 'f>
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