nonempty_range 0.1.0

A simple Range representing nonempty ranges.
Documentation
  • Coverage
  • 0%
    0 out of 4 items documented0 out of 1 items with examples
  • Size
  • Source code size: 3.35 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.38 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • jbrownson/nonempty-range
    1 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • jbrownson

NonemptyRange

I needed a type representing a Nonempty range and couldn't find one, so I thought I'd make one and publish a crate. To be super thorough I'd need to make a complete copy of the other Range types but nonempty. Feel free to submit a PR :). I tried generalizing the usize, but it wound up requiring the unstable Step trait, and it becomes possible to represent negative size_minus_ones so I decided to leave it at usize, but I'm interested in generalizing.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Jake Brownson - Initial work

License

This project is licensed under the MIT License - see the LICENSE.md file for details