int-interval 0.7.0

A small, no_std half-open interval algebra library for primitive integer types.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)]
pub enum OneTwo<T> {
    One(T),
    Two(T, T),
}

#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)]
pub enum ZeroOneTwo<T> {
    Zero,
    One(T),
    Two(T, T),
}