more_ranges
Range types not provided in the standard library.
This crate provides range types that are bounded exclusively below. Specifically, the types provided are:
These ranges operate nearly the same as those in
std::ops
. However, they do not function as
Iterator
s, nor can they be used in
indexing.
Example
The range types provided here can be used by directly specifying their fields:
use ;
let range_from_exclusive = RangeFromExclusive ;
let range_from_exclusive_to_exclusive = RangeFromExclusiveToExclusive ;
let range_from_exclusive_to_inclusive = RangeFromExclusiveToInclusive ;
Minimum Supported Rust Version
This crate is guaranteed to compile on stable rustc 1.28.0
and up.
License
This project is licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.