mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-20 20:00:38 +00:00
core: introduce split_at{,_mut}_checked
Introduce split_at_checked and split_at_mut_checked methods to slices
types (including str) which are non-panicking versions of split_at and
split_at_mut respectively. This is analogous to get method being
non-panicking version of indexing.
- https://github.com/rust-lang/libs-team/issues/308
- https://github.com/rust-lang/rust/issues/119128