/rust-rampart

Rust implementation of the Haskell Rampart library that determines how intervals relate to each other.

Primary LanguageRustMIT LicenseMIT

rust-rampart

test

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