[−][src]Trait fastobo::parser::FromPair
A trait for structures that can be parsed from a pest::Pair
.
Associated Constants
Loading content...Required methods
unsafe fn from_pair_unchecked(pair: Pair<'i, Rule>) -> Result<Self, SyntaxError>
Create a new instance from a Pair
without checking the rule.
Panic
Panics if the pair was not produced by the right rule, i.e.
pair.as_rule() != <Self as FromPair>::RULE
.
Provided methods
fn from_pair(pair: Pair<'i, Rule>) -> Result<Self, SyntaxError>
Create a new instance from a Pair
.