substr_range
and related methods #126769
Description
Feature gate: #![feature(substr_range)]
This is a tracking issue for str::substr_range
, slice::subslice_range
, and slice::element_offset
as described in this ACP.
These methods can be used for error handling and to extend str::lines
, str::split
, slice::split
, and other related methods.
impl str { fn substr_range(&self, substr: &str) -> Option<Range<usize>>; } impl<T> [T] { fn subslice_range(&self, subslice: &[T]) -> Option<Range<usize>>; fn element_offset(&self, element: &T) -> Option<usize>; }Steps / History
elem_offset
to element_offset
#132830substr_range
and related methods #141266Kolsky, wmstack, kornelski, Nicholas-Hein and joseluisKolsky
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4