Skip to main content

Map

Trait Map 

Source
pub trait Map<I>: SpecMap
where I: DeepView<V = Self::Input>,
{ type O: DeepView<V = Self::Output>; // Required method exec fn map(&self, i: I) -> o : Self::O; }

Required Associated Types§

Source

type O: DeepView<V = Self::Output>

Required Methods§

Source

exec fn map(&self, i: I) -> o : Self::O

ensures
self.spec_map(i.deep_view()) == o.deep_view(),

Implementors§

Source§

impl<I, O, Exec, Spec> Map<I> for FnMap<I, O, Exec, Spec>
where I: DeepView, O: DeepView, Exec: Fn(I) -> O, Spec: SpecMap<Input = I::V, Output = O::V>,

Source§

type O = O