Trait IntoParser

Source
pub trait IntoParser {
    type Item;
    type Next;
    type Error;
    type Parser: Parser<Item = Self::Item, Next = Self::Next, Error = Self::Error>;

    // Required method
    fn into(self) -> Self::Parser;
}

Required Associated Types§

Source

type Item

Source

type Next

Source

type Error

Source

type Parser: Parser<Item = Self::Item, Next = Self::Next, Error = Self::Error>

Required Methods§

Source

fn into(self) -> Self::Parser

Implementations on Foreign Types§

Source§

impl<T, E> IntoParser for Result<T, E>

Source§

type Item = T

Source§

type Next = ()

Source§

type Error = Error<E>

Source§

type Parser = JustResult<T, E>

Source§

fn into(self) -> Self::Parser

Implementors§

Source§

impl<T> IntoParser for T
where T: Parser,

Source§

type Item = <T as Parser>::Item

Source§

type Next = <T as Parser>::Next

Source§

type Error = <T as Parser>::Error

Source§

type Parser = T