pub trait TiRangeBounds<K> {
type Range: RangeBounds<usize>;
// Required method
fn into_range(self) -> Self::Range;
}
Expand description
A helper trait used to convert typed index ranges to usize
ranges.
The trait is implemented for Rust’s built-in range types with
K where usize:
From<K>
used as bound endpoints.
See core::ops::RangeBounds
for more details.
Required Associated Types§
Sourcetype Range: RangeBounds<usize>
type Range: RangeBounds<usize>
Appropriate usize range
Required Methods§
Sourcefn into_range(self) -> Self::Range
fn into_range(self) -> Self::Range
Converts the TiRangeBounds
into an appropriate usize range.