pub trait ParseElem: Parse {
type Element;
// Required method
fn parse_elem(&self, pos: usize) -> RuleResult<Self::Element>;
}
Expand description
A parser input type supporting the [...]
syntax.
Required Associated Types§
Required Methods§
sourcefn parse_elem(&self, pos: usize) -> RuleResult<Self::Element>
fn parse_elem(&self, pos: usize) -> RuleResult<Self::Element>
Get the element at pos
, or Failed
if past end of input.