Trait cbork_cddl_parser::cddl::Parser

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

A trait with a single method that parses strings.

Required Methods§

source

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

Parses a &str starting from rule.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Parser<Rule> for CDDLTestParser

source§

impl Parser<Rule> for cbork_cddl_parser::rfc_8610::RFC8610Parser

source§

impl Parser<Rule> for cbork_cddl_parser::rfc_9165::RFC8610Parser

source§

impl Parser<Rule> for cbork_cddl_parser::cddl::RFC8610Parser