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