pub mod exec;
pub mod proof;
pub mod spec;
use vstd::prelude::*;
verus! {
#[derive(Copy)]
pub struct Pair<A, B>(pub A, pub B);
impl<A: Clone, B: Clone> Clone for Pair<A, B> {
fn clone(&self) -> (cloned: Self)
ensures
call_ensures(A::clone, (&self.0,), cloned.0),
call_ensures(B::clone, (&self.1,), cloned.1),
{
Pair(self.0.clone(), self.1.clone())
}
}
#[derive(Copy)]
pub struct Bind<A, B>(pub A, pub B);
impl<A: Clone, B: Clone> Clone for Bind<A, B> {
fn clone(&self) -> (cloned: Self)
ensures
call_ensures(A::clone, (&self.0,), cloned.0),
call_ensures(B::clone, (&self.1,), cloned.1),
{
Bind(self.0.clone(), self.1.clone())
}
}
}