Trait peruse::parsers::Parser [] [src]

pub trait Parser {
    type I: ?Sized;
    type O;
    fn parse<'a>(&self, data: &'a Self::I) -> ParseResult<&'a Self::I, Self::O>;
}

A Parser is a parser that parses some elements out of the beginning of a slice and returns a parsed value along with the rest of the unparsed slice

Associated Types

Required Methods

Implementors