Skip to main content

FnWithRequiresEnsures

Trait FnWithRequiresEnsures 

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

Required Methods§

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

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

§

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

Available on verus_keep_ghost only.