Skip to main content

SimpleResourceInvariant

Trait SimpleResourceInvariant 

Source
pub trait SimpleResourceInvariant<V> {
    type Resource;

    // Required method
    spec fn inv(value: V, resource: Self::Resource) -> bool;
}
Expand description

A resource invariant that does not need a constant.

Required Associated Types§

Source

type Resource

A tracked resource associated with the value and transferred linearly between owners.

Required Methods§

Source

spec fn inv(value: V, resource: Self::Resource) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§