#portion #interval #python

portion-rs

A simple interval library inspired by Python's portion

5 releases (3 breaking)

0.3.1 Apr 20, 2021
0.3.0 Apr 20, 2021
0.2.0 Feb 3, 2021
0.1.0 Jan 30, 2021
0.0.1 Nov 13, 2020

#1 in #portion

MIT/Apache

20KB
459 lines

ci-badge docs-badge crate-version

portion-rs

A simple interval library inspired by Python's portion.

Sample Usage

use portion_rs::Portion;

fn main() {
    let a = Portion::closed(2, 3);
    println!("{}", a);
}

lib.rs:

ci-badge docs-badge crate-version

portion-rs

A simple interval library inspired by Python's portion.

No runtime deps