pub trait BaseCrawler {
// Required method
fn crawl<'a>(
&self,
context: &mut RuleContext<'a>,
f: &mut impl FnMut(&RuleContext<'a>),
);
// Provided methods
fn works_on_unparsable(&self) -> bool { ... }
fn passes_filter(&self, segment: &ErasedSegment) -> bool { ... }
}
Required Methods§
fn crawl<'a>( &self, context: &mut RuleContext<'a>, f: &mut impl FnMut(&RuleContext<'a>), )
Provided Methods§
fn works_on_unparsable(&self) -> bool
fn passes_filter(&self, segment: &ErasedSegment) -> bool
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.