MapWithGen

Trait MapWithGen 

Source
pub trait MapWithGen<E0>
where E0: Clone + 'static,
{ // Required method fn map<E1>( &self, map_fn: fn(E0) -> E1, unmap_fn: fn(E1) -> E0, ) -> BoxGen<E1> where E1: Clone + 'static; }
Expand description

Non-object-safe trait for providing generator mapping.

Required Methods§

Source

fn map<E1>(&self, map_fn: fn(E0) -> E1, unmap_fn: fn(E1) -> E0) -> BoxGen<E1>
where E1: Clone + 'static,

See gens::map.

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<E0: Clone + 'static> MapWithGen<E0> for dyn Gen<E0>