Crates.io | nonempty_range |
lib.rs | nonempty_range |
version | 0.1.0 |
source | src |
created_at | 2018-10-02 20:50:15.804914 |
updated_at | 2018-10-02 20:50:15.804914 |
description | A simple Range representing nonempty ranges. |
homepage | |
repository | https://github.com/jbrownson/nonempty-range |
max_upload_size | |
id | 87685 |
size | 3,719 |
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_one
s so I decided to leave it at usize, but I'm interested in generalizing.
We use SemVer for versioning. For the versions available, see the tags on this repository.
This project is licensed under the MIT License - see the LICENSE.md file for details