pub struct Name<'src> {
pub token: Token<'src>,
}
Expand description
A name. This is just a Token
of kind Identifier
, but we give it its own
type for clarity.
Fieldsยง
ยงtoken: Token<'src>
Implementationsยง
Methods from Deref<Target = Token<'src>>ยง
pub fn lexeme(&self) -> &'src str
pub fn error(&self, kind: CompileErrorKind<'src>) -> CompileError<'src>
Trait Implementationsยง
Sourceยงimpl<'src> Ord for Name<'src>
impl<'src> Ord for Name<'src>
1.21.0 ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Sourceยงimpl<'src> PartialOrd for Name<'src>
impl<'src> PartialOrd for Name<'src>
impl<'src> Copy for Name<'src>
impl<'src> Eq for Name<'src>
impl<'src> StructuralPartialEq for Name<'src>
Auto Trait Implementationsยง
impl<'src> Freeze for Name<'src>
impl<'src> RefUnwindSafe for Name<'src>
impl<'src> Send for Name<'src>
impl<'src> Sync for Name<'src>
impl<'src> Unpin for Name<'src>
impl<'src> UnwindSafe for Name<'src>
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