Feature gate: #![feature(one_sided_range)]
This is a tracking issue for the OneSidedRange trait, used in the signature of (stable) [T]::splt_off and similar API.
Public API
// core::ops
pub enum OneSidedRangeBound {
StartInclusive,
End,
EndInclusive,
}
pub const trait OneSidedRange<T>: RangeBounds<T> {
fn bound(self) -> (OneSidedRangeBound, T);
}
impl<T> OneSidedRange<T> for RangeTo<T>
where
Self: RangeBounds<T>,
{
fn bound(self) -> (OneSidedRangeBound, T);
}
impl<T> OneSidedRange<T> for RangeFrom<T>
where
Self: RangeBounds<T>,
{
fn bound(self) -> (OneSidedRangeBound, T);
}
impl<T> OneSidedRange<T> for RangeToInclusive<T>
where
Self: RangeBounds<T>,
{
fn bound(self) -> (OneSidedRangeBound, T);
}
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
Related: tracking issue for slice_take #62280
Unresolved Questions
Feature gate:
#![feature(one_sided_range)]This is a tracking issue for the
OneSidedRangetrait, used in the signature of (stable)[T]::splt_offand similar API.Public API
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)Related: tracking issue for
slice_take#62280Unresolved Questions
slice_take#62280 (comment)core::range?Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩