-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-ioArea: `std::io`, `std::fs`, `std::net` and `std::path`Area: `std::io`, `std::fs`, `std::net` and `std::path`C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
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)
FliegendeWurst, drgomesp, Jasha10, zopsicle, Banyc and 2 more
Metadata
Metadata
Assignees
Labels
A-ioArea: `std::io`, `std::fs`, `std::net` and `std::path`Area: `std::io`, `std::fs`, `std::net` and `std::path`C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.