pub trait Resolve {
// Required methods
fn resolve(self) -> bool;
fn resolve_coherence(self);
}Expand description
The trait Resolve makes it possible to expose to clients a custom resolve assertion for
opaque types.
For example, if a library defines a notion of finite mapping, it does not exposes the internal
representation of the finite mapping data structure. Hence, the resolve predicate above wil be
completely opaque for clients. This library should implement the Resolve trait in order to
provide to the client a definition it can use. E.g., Resolve::resolve states that any element
of the mapping is resolved.
Required Methods§
Sourcefn resolve_coherence(self)
fn resolve_coherence(self)
(prophetic) ⚠
requires
inv(self)requires
structural_resolve(self)ensures
self.resolve()