pub trait FastParser {
type Types: NodeTypes;
// Provided method
fn parse<'a>(
&self,
input: &'a str,
) -> Result<<Self::Types as NodeTypes>::Block, ParsingError> { ... }
}
Expand description
A trait that creates a parser from the given NodeTypes implementation.