Feature gate: #![feature(range_bounds_is_empty)]
This is a tracking issue for the is_empty method on RangeBounds.
Public API
// core::ops pub trait RangeBounds<T: ?Sized> { ... fn is_empty(&self) -> bool where T: PartialOrd, { ... } }
Steps / History
- ACP:
IntoBounds::clampandRangeBounds::is_emptylibs-team#539 - Implementation: add
IntoBounds::intersectandRangeBounds::is_empty#137304 - Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
(Excluded(1), Excluded(2))is considered to be non-empty. This could be a foot gun. Should we add a trait bound to avoid it? Related issues: