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.
Bytes::next
Bytes::size_hint
1 parent 475c71d commit ca7eef7Copy full SHA for ca7eef7
library/std/src/io/mod.rs
@@ -2778,6 +2778,7 @@ pub struct Bytes<R> {
2778
impl<R: Read> Iterator for Bytes<R> {
2779
type Item = Result<u8>;
2780
2781
+ #[inline]
2782
fn next(&mut self) -> Option<Result<u8>> {
2783
let mut byte = 0;
2784
loop {
@@ -2790,6 +2791,7 @@ impl<R: Read> Iterator for Bytes<R> {
2790
2791
}
2792
2793
2794
2795
fn size_hint(&self) -> (usize, Option<usize>) {
2796
SizeHint::size_hint(&self.inner)
2797
0 commit comments