Tracking issue for slice_take · Issue #62280 · rust-lang/rust (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

@cramertj

Description

@cramertj

Feature gate: #![feature(slice_take)]

Public API

impl [T] { fn split_off<'a, R: OneSidedRange>(self: &mut &'a Self, range: R) -> Option<&'a Self>; fn split_off_mut<'a, R: OneSidedRange>(self: &mut &'a mut Self, range: R) -> Option<&'a mut Self>; fn split_off_first<'a>(self: &mut &'a Self) -> Option<&'a T>; fn split_off_first_mut<'a>(self: &mut &'a mut Self) -> Option<&'a mut T>; fn split_off_last<'a>(self: &mut &'a Self) -> Option<&'a T>; fn split_off_last_mut<'a>(self: &mut &'a mut Self) -> Option<&'a mut T>; }

// core::ops

trait OneSidedRange<T: ?Sized>: RangeBounds {} impl OneSidedRange for RangeTo where Self: RangeBounds; impl OneSidedRange for RangeFrom where Self: RangeBounds; impl OneSidedRange for RangeToInclusive where Self: RangeBounds;

Steps / History

Unresolved Questions