pub trait FilterWithGen<E>where
E: Clone + 'static,{
// Required method
fn filter<P>(&self, predicate: P) -> BoxGen<E>
where P: Fn(&E) -> bool + Clone + 'static;
}
Expand description
Non-object-safe trait for providing example filtering in generator.
Required Methods§
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.