use-range
Comparable range validation primitives for RustUse.
Install
[]
= "0.0.1"
Foundation
use-range composes optional lower and upper bounds into a reusable RangeConstraint<T> that can validate comparable values.
Example
use ;
use RangeConstraint;
let range = new?;
assert!;
assert!;
# Ok::
When to use directly
Choose use-range when you need one reusable range primitive without a broader validation facade.
Scope
- Ranges stay generic over
PartialOrdvalues. - Bound construction lives in
use-bound. - Domain-specific error reporting is out of scope.
Status
use-range is a pre-1.0 crate with a deliberately small API.