pub trait Parseable<'a> {
    type Error: Error;
    type Output;

    fn parse(src: &'a str, pos: &mut usize) -> Result<Self::Output, Self::Error>;
    fn name() -> &'a str;

    fn skip(src: &'a str, pos: &mut usize) -> Result<(), Self::Error> { ... }
    fn get_parser() -> ParseableParser<'a, Self>
    where
        Self: Sized
, { ... } }

Required Associated Types§

Required Methods§

Provided Methods§

Implementors§