pub struct Keyword<'lex> { /* private fields */ }
Expand description
A keyword, i.e., an exact well-known string, such as +
, class
, and
#define
.
Keywords are similar to identifiers, but their content is always the same fixed string.
Trait Implementations§
source§impl Spanned for Keyword<'_>
impl Spanned for Keyword<'_>
source§fn comments<'ctx>(&self, ctx: &'ctx Context) -> Comments<'ctx>
fn comments<'ctx>(&self, ctx: &'ctx Context) -> Comments<'ctx>
Forwards to
SpanId::comments()
.impl<'lex> Copy for Keyword<'lex>
Auto Trait Implementations§
impl<'lex> RefUnwindSafe for Keyword<'lex>
impl<'lex> Send for Keyword<'lex>
impl<'lex> Sync for Keyword<'lex>
impl<'lex> Unpin for Keyword<'lex>
impl<'lex> UnwindSafe for Keyword<'lex>
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