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.