pub trait ParserExtension {
// Required method
fn apply(self, parser: &mut Parser);
// Provided method
fn and(
self,
other: impl ParserExtension,
) -> ChainedParserExtension<Self, impl ParserExtension>
where Self: Sized { ... }
}Expand description
A trait for extending the parser with custom behavior.
Required Methods§
Provided Methods§
Sourcefn and(
self,
other: impl ParserExtension,
) -> ChainedParserExtension<Self, impl ParserExtension>where
Self: Sized,
fn and(
self,
other: impl ParserExtension,
) -> ChainedParserExtension<Self, impl ParserExtension>where
Self: Sized,
Chains this extension with another extension.