pub trait Parse: Sized + 'static {
    fn parser() -> Parser<Self>;

    fn parse(input: &str) -> Result<'_, Self> { ... }
}
Expand description

Types that can be parsed from strings.

Required Methods

Return a parser for this type.

Provided Methods

Parse a string into this type.

Implementors