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
use crate::traits::{IRange, IRangeFrom, IRangeToInclusive};

pub trait IRanged<TRange>
where
    TRange: IRange + IRangeFrom + IRangeToInclusive, {
    fn end(&self) -> TRange::ValueType;
    fn start(&self) -> TRange::ValueType;
    fn value(&self) -> &TRange::ValueType;
}