Tracking Issue for io::Cursor::{split, split_mut}
#86369
Open
Description
opened on Jun 16, 2021
Feature gate: #![feature(cursor_split)]
impl<T> Cursor<T>
where
T: AsRef<[u8]>,
{
pub fn split(&self) -> (&[u8], &[u8]);
}
impl<T> Cursor<T>
where
T: AsMut<[u8]>,
{
pub fn split_mut(&mut self) -> (&mut [u8], &mut [u8]);
}
Steps / History
- Add
io::Cursor::{remaining, remaining_slice, is_empty}
#86037 - Replace
io::Cursor::{remaining_slice, is_empty}
#109174 - Final commenting period (FCP)
- Stabilization PR
Unresolved Questions/Issues
nameremaining
Addio::Cursor::{remaining, remaining_slice, is_empty}
#86037 (comment)change signature ofremaining
to returnusize
. Tracking Issue forio::Cursor::{split, split_mut}
#86369 (comment)conflict with<Cursor as bytes::Buf>::remaining
Tracking Issue forio::Cursor::{split, split_mut}
#86369 (comment)
Activity