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.
1 parent ef35b78 commit 6d101c2Copy full SHA for 6d101c2
library/std/src/io/stdio.rs
@@ -120,6 +120,14 @@ impl Read for StdinRaw {
120
fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> {
121
handle_ebadf(self.0.read_to_string(buf), 0)
122
}
123
+
124
+ fn read_exact(&mut self, buf: &mut [u8]) -> io::Result<()> {
125
+ handle_ebadf(self.0.read_exact(buf), ())
126
+ }
127
128
+ fn read_buf_exact(&mut self, buf: BorrowedCursor<'_>) -> io::Result<()> {
129
+ handle_ebadf(self.0.read_buf_exact(buf), ())
130
131
132
133
impl Write for StdoutRaw {
0 commit comments