Skip to main content

FnSpecMapper

Type Alias FnSpecMapper 

Source
pub type FnSpecMapper<In, Out> = (FnSpec<(In,), Out>, FnSpec<(Out,), In>);

Trait Implementations§

Source§

impl<In, Out> SpecMapper for FnSpecMapper<In, Out>

Source§

open spec fn spec_map(&self, i: Self::In) -> Self::Out

{ (self.0)(i) }
Source§

open spec fn spec_map_rev(&self, o: Self::Out) -> Self::In

{ (self.1)(o) }
Source§

type In = In

The input type.
Source§

type Out = Out

The output type.
Source§

fn wf_in(&self, i: Self::In) -> bool

Source§

fn wf_out(&self, o: Self::Out) -> bool