Trait Parse

Source
pub trait Parse<'i> {
    type Input: 'i;
    type Output;
    type Error;

    // 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>;
}

Required Associated Types§

Required Methods§

Source

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

Source

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

Implementors§

Source§

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

Source§

type Input = &'a [u8]

Source§

type Output = <P as Parse<'a>>::Output

Source§

type Error = Utf8AdapterError<<P as Parse<'a>>::Error>