[][src]Struct combine::parser::token::Token

pub struct Token<Input> where
    Input: Stream,
    Input::Token: PartialEq
{ /* fields omitted */ }

Trait Implementations

impl<Input: Clone> Clone for Token<Input> where
    Input: Stream,
    Input::Token: PartialEq,
    Input::Token: Clone
[src]

impl<Input: Copy> Copy for Token<Input> where
    Input: Stream,
    Input::Token: PartialEq,
    Input::Token: Copy
[src]

impl<Input> Parser<Input> for Token<Input> where
    Input: Stream,
    Input::Token: PartialEq + Clone
[src]

type Output = Input::Token

The type which is returned if the parser is successful.

type PartialState = ()

Determines the state necessary to resume parsing after more input is supplied. Read more

Auto Trait Implementations

impl<Input> RefUnwindSafe for Token<Input> where
    Input: RefUnwindSafe,
    <Input as StreamOnce>::Token: RefUnwindSafe

impl<Input> Send for Token<Input> where
    Input: Send,
    <Input as StreamOnce>::Token: Send

impl<Input> Sync for Token<Input> where
    Input: Sync,
    <Input as StreamOnce>::Token: Sync

impl<Input> Unpin for Token<Input> where
    Input: Unpin,
    <Input as StreamOnce>::Token: Unpin

impl<Input> UnwindSafe for Token<Input> where
    Input: UnwindSafe,
    <Input as StreamOnce>::Token: UnwindSafe

Blanket Implementations

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

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

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

impl<Input, P> EasyParser<Input> for P where
    Input: Stream,
    P: Parser<Stream<Input>> + ?Sized,
    <Input as StreamOnce>::Token: PartialEq<<Input as StreamOnce>::Token>,
    <Input as StreamOnce>::Range: PartialEq<<Input as StreamOnce>::Range>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<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.