Trait OneSidedRange

trait OneSidedRange<T>: RangeBounds<T>

OneSidedRange is implemented for built-in range types that are unbounded on one side. For example, a.., ..b and ..=c implement OneSidedRange, but .., d..e, and f..=g do not.

Types that implement OneSidedRange<T> must return Bound::Unbounded from one of RangeBounds::start_bound or RangeBounds::end_bound.

Required Methods

fn bound(self: Self) -> (OneSidedRangeBound, T)

An internal-only helper function for split_off and split_off_mut that returns the bound of the one-sided range.

Implementors