Trait Bound
tightness
pub trait Bound { type Target; fn check(target: &Self::Target) -> bool; }
Trait for an arbitrary condition that a bounded type must guarantee to uphold at all times.
type Target
The type that the invariant is predicated on.
fn check(target: &Self::Target) -> bool
The condition that the target type must verify at all times.