Skip to main content

SpecMap

Trait SpecMap 

Source
pub trait SpecMap {
    type Input;
    type Output;

    // Required method
    spec fn spec_map(&self, i: Self::Input) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

spec fn spec_map(&self, i: Self::Input) -> Self::Output

Implementations on Foreign Types§

Source§

impl<I, O> SpecMap for FnSpec<(I,), O>

Source§

open spec fn spec_map(&self, i: Self::Input) -> Self::Output

{ (self)(i) }
Source§

type Input = I

Source§

type Output = O

Implementors§

Source§

impl<I, O, Exec, Spec> SpecMap 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 Input = <I as DeepView>::V

Source§

type Output = <O as DeepView>::V