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§

source

fn precondition(self, a: Args) -> bool

logic(prophetic)

source

fn postcondition_once(self, a: Args, res: Self::Output) -> bool

logic(prophetic)

Implementors§

source§

impl<Args: Tuple, F: FnOnce<Args>> FnOnceExt<Args> for F

§

type Output = <F as FnOnce<Args>>::Output