kvarn_async::prelude::compact_str::core::rangeStruct RangeToInclusive
source pub struct RangeToInclusive<Idx> {
pub end: Idx,
}
🔬This is a nightly-only experimental API. (new_range_api)
Expand description
A range only bounded inclusively above (..=end).
The RangeToInclusive ..=end contains all values with x <= end.
It cannot serve as an Iterator because it doesn’t have a starting point.
§Examples
The ..=end syntax is a RangeToInclusive:
assert_eq!((..=5), std::ops::RangeToInclusive{ end: 5 });
It does not have an