Trait FilterWithGen

Source
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§

Source

fn filter<P>(&self, predicate: P) -> BoxGen<E>
where P: Fn(&E) -> bool + Clone + 'static,

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.

Implementors§

Source§

impl<E: Clone + 'static> FilterWithGen<E> for dyn Gen<E>