pub trait Protocol<K, V>: Sized {
    // Required methods
    fn op(self, other: Self) -> Self;
    fn rel(self, s: Map<K, V>) -> bool;
    fn unit() -> Self;
    fn commutative(a: Self, b: Self);
    fn associative(a: Self, b: Self, c: Self);
    fn op_unit(a: Self);
}
Expand description

See StorageResource for more information.

Required Methods§

source

spec fn op(self, other: Self) -> Self

source

spec fn rel(self, s: Map<K, V>) -> bool

Note that rel, in contrast to PCM::valid, is not necessarily closed under inclusion.

source

spec fn unit() -> Self

source

proof fn commutative(a: Self, b: Self)

source

proof fn associative(a: Self, b: Self, c: Self)

source

proof fn op_unit(a: Self)

Object Safety§

This trait is not object safe.

Implementors§