We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2baa994 + 2251e9a commit 5db5853Copy full SHA for 5db5853
library/std/src/io/util.rs
@@ -204,6 +204,16 @@ impl Read for Repeat {
204
Ok(())
205
}
206
207
+ /// This function is not supported by `io::Repeat`, because there's no end of its data
208
+ fn read_to_end(&mut self, _: &mut Vec<u8>) -> io::Result<usize> {
209
+ Err(io::Error::from(io::ErrorKind::OutOfMemory))
210
+ }
211
+
212
213
+ fn read_to_string(&mut self, _: &mut String) -> io::Result<usize> {
214
215
216
217
#[inline]
218
fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize> {
219
let mut nwritten = 0;
0 commit comments