pub trait MatcherExt: Matcher {
// Provided methods
fn match_node<'tree, D: Doc>(
&self,
node: Node<'tree, D>,
) -> Option<NodeMatch<'tree, D>> { ... }
fn find_node<'tree, D: Doc>(
&self,
node: Node<'tree, D>,
) -> Option<NodeMatch<'tree, D>> { ... }
}Expand description
MatcherExt provides additional utility methods for Matcher.
It is implemented for all types that implement Matcher.
N.B. This trait is not intended to be implemented by users.
Provided Methods§
fn match_node<'tree, D: Doc>( &self, node: Node<'tree, D>, ) -> Option<NodeMatch<'tree, D>>
fn find_node<'tree, D: Doc>( &self, node: Node<'tree, D>, ) -> Option<NodeMatch<'tree, D>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.