use-constraint
Lightweight named constraint primitives for RustUse.
Install
[]
= "0.0.1"
Foundation
use-constraint provides a Constraint<T, F> wrapper for named checks that answer whether a value satisfies a specific requirement.
Example
use Constraint;
let constraint = new;
let evaluation = constraint.evaluate;
assert_eq!;
assert!;
When to use directly
Choose use-constraint when you want a named must satisfy wrapper without a broader validation framework.
Scope
- Constraints stay generic over a single input value.
- Evaluation results stay small and explicit.
- Error aggregation and reporting layers are out of scope.
Status
use-constraint is a pre-1.0 crate with a deliberately narrow API.