pub trait Continuation<Input> {
type Output;
// Required methods
exec fn apply(&self, i: Input) -> o : Self::Output;
spec fn requires(&self, i: Input) -> bool;
spec fn ensures(&self, i: Input, o: Self::Output) -> bool;
}Expand description
Use this Continuation trait instead of Fn(Input) -> Output to avoid unsupported Verus features