Enum Token
enum Token<'i, R>
A token generated by a Parser.
Variants
-
Start { rule: R, pos: crate::position::Position<'i> } The starting
Positionof a matchedRule-
End { rule: R, pos: crate::position::Position<'i> } The ending
Positionof a matchedRule
Implementations
impl<'i, R> Freeze for Token<'i, R>
impl<'i, R> RefUnwindSafe for Token<'i, R>
impl<'i, R> Send for Token<'i, R>
impl<'i, R> StructuralPartialEq for Token<'i, R>
impl<'i, R> Sync for Token<'i, R>
impl<'i, R> Unpin for Token<'i, R>
impl<'i, R> UnsafeUnpin for Token<'i, R>
impl<'i, R> UnwindSafe for Token<'i, R>
impl<'i, R: $crate::clone::Clone> Clone for Token<'i, R>
fn clone(self: &Self) -> Token<'i, R>
impl<'i, R: $crate::cmp::Eq> Eq for Token<'i, R>
impl<'i, R: $crate::cmp::PartialEq> PartialEq for Token<'i, R>
fn eq(self: &Self, other: &Token<'i, R>) -> bool
impl<'i, R: $crate::fmt::Debug> Debug for Token<'i, R>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl<'i, R: $crate::hash::Hash> Hash for Token<'i, R>
fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)
impl<T> Any for Token<'i, R>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for Token<'i, R>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for Token<'i, R>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for Token<'i, R>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for Token<'i, R>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for Token<'i, R>
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for Token<'i, R>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for Token<'i, R>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for Token<'i, R>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>