[][src]Trait streamparser::Parse

pub trait Parse<'i> {
    type Input: 'i;
    type Output;
    type Error;
    fn parse(
        &mut self,
        input: Self::Input
    ) -> Result<Streaming<Parsed<Self::Output>>, Self::Error>;
fn parse_eof(
        &mut self,
        input: Self::Input
    ) -> Result<Parsed<Self::Output>, Self::Error>; }

Associated Types

type Input: 'i

type Output

type Error

Loading content...

Required methods

fn parse(
    &mut self,
    input: Self::Input
) -> Result<Streaming<Parsed<Self::Output>>, Self::Error>

fn parse_eof(
    &mut self,
    input: Self::Input
) -> Result<Parsed<Self::Output>, Self::Error>

Loading content...

Implementors

impl<'a, P> Parse<'a> for Utf8Adapter<P> where
    P: Parse<'a, Input = &'a str>, 
[src]

type Input = &'a [u8]

type Output = P::Output

type Error = Utf8AdapterError<P::Error>

Loading content...