rich_range 0.1.0

Range calculation helper.
Documentation
  • Coverage
  • 100%
    165 out of 165 items documented87 out of 89 items with examples
  • Size
  • Source code size: 558.9 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 34.11 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 1m 9s Average build duration of successful builds.
  • all releases: 1m 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • nossie531/rich_range
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nossie531

rich_range

Range calculation helper.

The author of this crate is not good at English.
Forgive me if the document is hard to read.

Examples

use rich_range::prelude::*;

let r = rw::new(30..60) & rw::new(40..70);
assert_eq!(r.0, 40..60);

let r = ru::new(30..) & ru::new(..60);
assert_eq!(r, ru::new(30..60));

Highlights

This crate is designed with the following focus.

  • Multiple range operations with sufficient variety.
  • Abstraction and normalization of bound variants.
  • Interoperability with Rust standard ranges in short code.
  • Similar usage style to Rust new range API (nightly as of 2025).

Core items

Cheat sheet

Following is a rough list of items.

History

See CHANGELOG.