Macros§
- open_
atomic_ invariant - Macro used to temporarily “open” an
AtomicInvariantobject, obtaining the stored value within. - open_
atomic_ invariant_ in_ proof - open_
local_ invariant - Macro used to temporarily “open” a
LocalInvariantobject, obtaining the stored value within. - open_
local_ invariant_ in_ proof
Structs§
- Atomic
Invariant - An
AtomicInvariantis a ghost object that provides “interior mutability” for ghost objects, specifically, fortrackedghost objects. A reference&AtomicInvariantmay be shared between clients. A client holding such a reference may open the invariant to obtain ghost ownership ofv1: V, and then close the invariant by returning ghost ownership of a (potentially) different objectv2: V. - Local
Invariant - A
LocalInvariantis a ghost object that provides “interior mutability” for ghost objects, specifically, fortrackedghost objects. A reference&LocalInvariantmay be shared between clients. A client holding such a reference may open the invariant to obtain ghost ownership ofv1: V, and then close the invariant by returning ghost ownership of a (potentially) different objectv2: V. - Open
Invariant Credit
Traits§
- Invariant
Predicate - Trait used to specify an invariant predicate for
LocalInvariantandAtomicInvariant.