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.0
0/0 0/0 0/0 0/0 0/0
```