Struct lrlex::DefaultLexeme [−][src]
Expand description
lrlex’s standard lexeme struct: all lexemes are instances of this struct.
Trait Implementations
Create a new lexeme with ID tok_id
, a starting position in the input start
, and length
len
. Read more
Create a new faulty lexeme with ID tok_id
and a starting position in the input start
.
impl<StorageT: PartialEq + Debug> PartialEq<DefaultLexeme<StorageT>> for DefaultLexeme<StorageT>
impl<StorageT: PartialEq + Debug> PartialEq<DefaultLexeme<StorageT>> for DefaultLexeme<StorageT>
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<StorageT> RefUnwindSafe for DefaultLexeme<StorageT> where
StorageT: RefUnwindSafe,
impl<StorageT> Send for DefaultLexeme<StorageT> where
StorageT: Send,
impl<StorageT> Sync for DefaultLexeme<StorageT> where
StorageT: Sync,
impl<StorageT> Unpin for DefaultLexeme<StorageT> where
StorageT: Unpin,
impl<StorageT> UnwindSafe for DefaultLexeme<StorageT> where
StorageT: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.