use-bound 0.0.1

Inclusive and exclusive bound primitives for RustUse
Documentation
1
2
3
4
5
6
7
8
9
use use_bound::{exclusive_minimum, maximum};

fn main() {
    let lower = exclusive_minimum(0);
    let upper = maximum(10);

    assert!(lower.allows(&1));
    assert!(upper.allows(&10));
}