pub trait FnWithRequiresEnsures<Args, Output>: Sized {
    // Required methods
    spec fn requires(self, args: Args) -> bool;
    spec fn ensures(self, args: Args, output: Output) -> bool;
}

Required Methods§

source

spec fn requires(self, args: Args) -> bool

source

spec fn ensures(self, args: Args, output: Output) -> bool

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<Args: Tuple, Output, F: FnOnce<Args, Output = Output>> FnWithRequiresEnsures<Args, Output> for F