Trait creusot_contracts::std::ops::FnOnceExt
source · pub trait FnOnceExt<Args: Tuple> {
type Output;
// Required methods
fn precondition(self, a: Args) -> bool;
fn postcondition_once(self, a: Args, res: Self::Output) -> bool;
}
Expand description
FnOnceExt
is an extension trait for the FnOnce
trait, used for
adding a specification to closures. It should not be used directly.
Required Associated Types§
Required Methods§
sourcefn precondition(self, a: Args) -> bool
fn precondition(self, a: Args) -> bool
logic(prophetic)
sourcefn postcondition_once(self, a: Args, res: Self::Output) -> bool
fn postcondition_once(self, a: Args, res: Self::Output) -> bool
logic(prophetic)