Open
Description
Feature gate: #![feature(range_into_bounds)]
This is a tracking issue for the IntoBounds
trait.
Public API
// core::ops
pub trait IntoBounds<T: Sized> {
fn into_bounds(self) -> (Bound<T>, Bound<T>);
}
impl<T> IntoBounds<T> for Range<T>
impl<T> IntoBounds<T> for RangeFrom<T>
impl<T> IntoBounds<T> for RangeFull
impl<T> IntoBounds<T> for RangeInclusive<T>
impl<T> IntoBounds<T> for RangeTo<T>
impl<T> IntoBounds<T> for RangeToInclusive<T>
Steps / History
- ACP:
RangeBound::into_bounds
libs-team#538 - Implementation: add
IntoBounds
trait #136904 - Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.