We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Bytes::next
Bytes::size_hint
1 parent 64368d0 commit 4d68108Copy full SHA for 4d68108
library/std/src/io/mod.rs
@@ -2777,6 +2777,7 @@ pub struct Bytes<R> {
2777
impl<R: Read> Iterator for Bytes<R> {
2778
type Item = Result<u8>;
2779
2780
+ #[inline]
2781
fn next(&mut self) -> Option<Result<u8>> {
2782
let mut byte = 0;
2783
loop {
@@ -2789,6 +2790,7 @@ impl<R: Read> Iterator for Bytes<R> {
2789
2790
}
2791
2792
2793
2794
fn size_hint(&self) -> (usize, Option<usize>) {
2795
SizeHint::size_hint(&self.inner)
2796
0 commit comments