ContainerMap

Trait ContainerMap 

Source
pub trait ContainerMap<T>: Container<T>
where Self::Cont<T>: RawSpace<Elem = T>,
{ // Required method fn map<F, X>(&self, f: F) -> Self::Cont<X> where Self::Cont<T>: Apply<F, Output = Self::Cont<X>>, Self::Cont<X>: Sized; }

Required Methods§

Source

fn map<F, X>(&self, f: F) -> Self::Cont<X>
where Self::Cont<T>: Apply<F, Output = Self::Cont<X>>, Self::Cont<X>: Sized,

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<S, T> ContainerMap<T> for S
where S: Container<T, Cont<T> = S>, <S as Container<T>>::Cont<T>: RawSpace<Elem = T>,