pub trait ResourceInvariant<V>: Sized {
type Constant;
type Resource;
// Required method
spec fn inv(constant: Self::Constant, value: V, resource: Self::Resource) -> bool;
}Expand description
An invariant that relates a value to a tracked resource.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.