Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 83cadd0 + 8623fa4 commit 9138bd1Copy full SHA for 9138bd1
std/src/io/buffered/bufreader.rs
@@ -94,7 +94,9 @@ impl<R: Read> BufReader<R> {
94
pub fn with_capacity(capacity: usize, inner: R) -> BufReader<R> {
95
BufReader { inner, buf: Buffer::with_capacity(capacity) }
96
}
97
+}
98
99
+impl<R: Read + ?Sized> BufReader<R> {
100
/// Attempt to look ahead `n` bytes.
101
///
102
/// `n` must be less than `capacity`.
0 commit comments