The feature gate for the issue is #![feature(slice_range)].
This issue currently tracks the following API:
pub mod slice {
pub fn range<R>(range: R, bounds: RangeTo<usize>) -> Range<usize>
where
R: RangeBounds<usize>;
}
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
Unresolved Questions
Implementation history
The feature gate for the issue is
#![feature(slice_range)].This issue currently tracks the following API:
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
slice::check_range#75207)Unresolved Questions
Should this method be defined on(MoveRangeBoundsorRangeinstead?slice::check_rangetoRangeBounds#76885)Should a non-panicking version be added?#[final]methods in traits?RangeBoundsis that todayunsafecode can't trust any method on a not-unsafe trait to validate anything. But if this was a final method, and thus not overridable, thenunsafecode could trust it.std::rangereturn typeImplementation history
slice::check_range#75207slice::check_rangetoRangeBounds#76885slice::rangein Improve design ofassert_len#81154