#intervals #how #relation #determine #relate

rampart

Rampart determines how intervals relate to each other

2 releases

0.1.1 Apr 20, 2022
0.1.0 Apr 20, 2022

#15 in #intervals

MIT license

7KB
128 lines

rust-rampart

Rust implementation of the Haskell Rampart library by Taylor Fausak.

Usage

Add this to your Cargo.toml:

[dependencies]
rampart = "0.1.1"

Examples

let a = Interval::new(2, 3);
let b = Interval::new(3, 7);
let rel = a.relate(&b); 
# Relation::Meets

No runtime deps