use-bound
Inclusive and exclusive bound primitives for RustUse.
Install
[]
= "0.0.1"
Foundation
use-bound models lower and upper bounds explicitly, with inclusive and exclusive variants that work with any PartialOrd value.
Example
use ;
let lower = exclusive_minimum;
let upper = maximum;
assert!;
assert!;
When to use directly
Choose use-bound when you only need reusable lower and upper bound primitives.
Scope
- Bounds stay generic over
PartialOrdvalues. - Higher-level range assembly lives in
use-range.
Status
use-bound is a pre-1.0 crate with a deliberately small API.