kvarn_async::prelude::compact_str::core::range

Struct RangeInclusive

source
pub struct RangeInclusive<Idx> {
    pub start: Idx,
    pub end: Idx,
}
🔬This is a nightly-only experimental API. (new_range_api)
Expand description

A range bounded inclusively below and above (start..=end).

The RangeInclusive start..=end contains all values with x >= start and x <= end. It is empty unless start <= end.

§Examples

The start..=end syntax is a RangeInclusive:

#![feature(new_range_api)]
use core::range::RangeInclusive;

assert_eq!(R