range_ranger 0.1.1

A range library
Documentation
  • Coverage
  • 80%
    24 out of 30 items documented0 out of 0 items with examples
  • Size
  • Source code size: 123.82 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.98 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • vbfox

Range ranger

Build

This library is a WORK IN PROGRESS experiment into rust APIs for me

Range ranger is a range manipulation library supporting multiple type of ranges under a single type:

  • Empty
  • Continuous (containing all values between min and max)
    • Bounds can be inclusive or exclusive
    • Bounds can be finite or infinite
  • Full ranges
  • List of values
  • Single value
  • Composite ranges (Union of multiple of theses)

With support for the following operations:

  • Union
  • Intersection
  • Difference
  • Contains range
  • Contains value
  • Overlaps
  • Simplification

The range type is an enum of all the possible range subtypes. The default behaviour for ranges constructed via methods is to be simplified and sorted but non-simplified ranges can be constructed by creating the enum members directly.

Running coverage

# Requirements
cargo install grcov to install
rustup component add llvm-tools-preview

# Running
./coverage.ps1

See also