10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Read::read_buf
1 parent 4a11249 commit 57557c9Copy full SHA for 57557c9
std/src/io/mod.rs
@@ -978,6 +978,8 @@ pub trait Read {
978
/// with uninitialized buffers. The new data will be appended to any existing contents of `buf`.
979
///
980
/// The default implementation delegates to `read`.
981
+ ///
982
+ /// This method makes it possible to return both data and an error but it is advised against.
983
#[unstable(feature = "read_buf", issue = "78485")]
984
fn read_buf(&mut self, buf: BorrowedCursor<'_>) -> Result<()> {
985
default_read_buf(|b| self.read(b), buf)
0 commit comments