Getting Started
Installation
Basic Usage
use ;
Documentation
- Documentation — Complete documentation for this library.
Features
- Generic Bounds: Supports any type implementing
PartialOrd,Clone, andDebug. - Flexible Bounds: Independently configure lower and upper bounds as inclusive (
>=/<=) or exclusive (>/<). - Safe Clamping: Offers optional automatic clamping when updating bounds, with strict mathematical protections for exclusive bounds to prevent ambiguity.
- Strict Serde Support: Built-in serialization and deserialization implementations that strictly enforce bound invariants during parsing.
- Transparent Value Access: Implements the
Dereftrait, allowing intuitive and direct access to the underlying value.
License
This project is licensed under the MIT License.