Expand description
Wrapper for the lexeme enum, containing extra information about the location
and length of the lexeme in the string input.
The lexeme matched in the input. The Lexeme struct is Shrinkwrapped
around this field.
The index in the input string where the lexeme starts.
The number characters the lexeme uses in the input.
Immutably borrows from an owned value. Read more
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
The resulting type after dereferencing.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Can only implement Lexeme == T, because trying to implement T == Lexeme violates
orphan rules. When comparing a wrapped Lexeme to its internal type, put the lexeme first.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.