pub trait Parseable {
    type Info;

    fn parse_with(
        text: impl AsRef<str>,
        info: &Self::Info
    ) -> Result<Self, Error>; fn parse(text: impl AsRef<str>) -> Result<Self, Error>
    where
        Self: Parseable<Info = ()>
, { ... } }
Expand description

Trait for types that can be parsed.

Required Associated Types

Information used during parsing.

Required Methods

Parses something, given some info.

Provided Methods

Parses something when no info is needed.

Implementations on Foreign Types

Implementors