Trait icu_data::ucm::parser::Parser[][src]

pub trait Parser<R> where
    R: RuleType
{ fn parse(rule: R, input: &str) -> Result<Pairs<'_, R>, Error<R>>; }
Expand description

A trait with a single method that parses strings.

Required methods

fn parse(rule: R, input: &str) -> Result<Pairs<'_, R>, Error<R>>[src]

Parses a &str starting from rule.

Implementors

impl Parser<Rule> for UcmParser[src]

fn parse<'i>(rule: Rule, input: &'i str) -> Result<Pairs<'i, Rule>, Error<Rule>>[src]