AnyRange<T> enum can hold any Range*<T> type.
no_std, depends only on coreforbid(unsafe_code)Range<T>.
The alignment of T determines how many extra bytes the enum uses.anyrange
ToRangeRangeInclusive or RangeToInclusiverust
use any_range::AnyRange;
let range: AnyRange<u8> = (3..5).into();
assert!(range.contains(&3));
```
Metric output format: x/y x = unsafe code used by the build y = total unsafe code found in the crate
Symbols:
🔒 = No unsafe usage found, declares #![forbid(unsafecode)]
❓ = No unsafe usage found, missing #![forbid(unsafecode)]
☢️ = unsafe usage found
Functions Expressions Impls Traits Methods Dependency
0/0 0/0 0/0 0/0 0/0 🔒 any-range 0.1.3
0/0 0/0 0/0 0/0 0/0
```
Hash, PartialOrd, OrdFixing bugs and adding features is easy and fast. Send us a pull request and we intend to: - Always respond within 24 hours - Provide clear & concrete feedback - Immediately make a new release for your accepted change
License: Apache-2.0