arranged 0.1.2

Statically bounds-checked (machine-word-abstracting? TBD) ranged types as zero or low-runtime overhead abstractions providing safe (no unintentional overflow) arithmetic.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use super::*;
use arith_traits::IMinMax;

impl<TRange> const IMinMax for Ranged<TRange>
where
    Self: PartialOrd,
    TRange: ~const IRangeFrom + ~const IRangeTo + ~const IRangeToInclusive,
{
    const MAX: Self = Self(TRange::end());
    const MIN: Self = Self(TRange::start());
}