pub struct Ident<S> {
pub text: SmolStr,
pub span: S,
}
Expand description
Identifier or keyword. Unlike rustc, we keep “r#” prefix when it represents a raw identifier.
Fields§
§text: SmolStr
§span: S
Implementations§
Trait Implementations§
source§impl<S: PartialEq> PartialEq for Ident<S>
impl<S: PartialEq> PartialEq for Ident<S>
impl<S: Eq> Eq for Ident<S>
impl<S> StructuralPartialEq for Ident<S>
Auto Trait Implementations§
impl<S> Freeze for Ident<S>where
S: Freeze,
impl<S> RefUnwindSafe for Ident<S>where
S: RefUnwindSafe,
impl<S> Send for Ident<S>where
S: Send,
impl<S> Sync for Ident<S>where
S: Sync,
impl<S> Unpin for Ident<S>where
S: Unpin,
impl<S> UnwindSafe for Ident<S>where
S: UnwindSafe,
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