Crates.io | any-range |
lib.rs | any-range |
version | 0.1.4 |
source | src |
created_at | 2021-03-19 11:49:42.529768 |
updated_at | 2024-03-22 19:22:24.837147 |
description | AnyRange |
homepage | |
repository | https://gitlab.com/leonhard-llc/ops |
max_upload_size | |
id | 370949 |
size | 14,854 |
AnyRange<T>
enum can hold any Range*<T>
type.
no_std
, depends only on core
forbid(unsafe_code)
Range<T>
.
The alignment of T
determines how many extra bytes the enum uses.anyrange
ToRange
RangeInclusive
or RangeToInclusive
use any_range::AnyRange;
let r = AnyRange::from(3..5);
assert!(r.contains(&3));
assert_eq!("de", &"abcdefg"[r.bounds()]);
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(unsafe_code)]
❓ = No `unsafe` usage found, missing #![forbid(unsafe_code)]
☢️ = `unsafe` usage found
Functions Expressions Impls Traits Methods Dependency
0/0 0/0 0/0 0/0 0/0 🔒 any-range 0.1.4
0/0 0/0 0/0 0/0 0/0
bounds
method for slicingHash
, PartialOrd
, Ord
License: Apache-2.0