[][src]Struct gll_pg_core::LogosToken

pub struct LogosToken<'a, T: Logos> {
    pub kind: T,
    pub slice: &'a str,
}

A wrapper around Logos token type, providing its slice and kind.

Fields

kind: T

Token kind

slice: &'a str

Token slice

Trait Implementations

impl<'a, T: Clone + Logos> Clone for LogosToken<'a, T>[src]

impl<'a, T: Eq + Logos> Eq for LogosToken<'a, T>[src]

impl<'a, T: PartialEq + Logos> PartialEq<LogosToken<'a, T>> for LogosToken<'a, T>[src]

impl<'a, T: Logos> StructuralPartialEq for LogosToken<'a, T>[src]

impl<'a, T: Logos> StructuralEq for LogosToken<'a, T>[src]

Auto Trait Implementations

impl<'a, T> Send for LogosToken<'a, T> where
    T: Send

impl<'a, T> Sync for LogosToken<'a, T> where
    T: Sync

impl<'a, T> Unpin for LogosToken<'a, T> where
    T: Unpin

impl<'a, T> UnwindSafe for LogosToken<'a, T> where
    T: UnwindSafe

impl<'a, T> RefUnwindSafe for LogosToken<'a, T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]