pub struct Ident<'i> {
pub inner: &'i str,
pub loc: (Loc, Loc),
}Expand description
Identifier token borrowed from the source.
Fields§
§inner: &'i strIdentifier text as it appears in the source.
loc: (Loc, Loc)Source span of the identifier.
Trait Implementations§
impl<'i> Eq for Ident<'i>
impl<'i> StructuralPartialEq for Ident<'i>
Auto Trait Implementations§
impl<'i> Freeze for Ident<'i>
impl<'i> RefUnwindSafe for Ident<'i>
impl<'i> Send for Ident<'i>
impl<'i> Sync for Ident<'i>
impl<'i> Unpin for Ident<'i>
impl<'i> UnsafeUnpin for Ident<'i>
impl<'i> UnwindSafe for Ident<'i>
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