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 2c539d4 commit 765bc90Copy full SHA for 765bc90
src/libstd/iter.rs
@@ -795,7 +795,8 @@ pub struct ByRef<'a, T> {
795
impl<'a, A, T: Iterator<A>> Iterator<A> for ByRef<'a, T> {
796
#[inline]
797
fn next(&mut self) -> Option<A> { self.iter.next() }
798
- // FIXME: #9629 we cannot implement &self methods like size_hint on ByRef
+ #[inline]
799
+ fn size_hint(&self) -> (uint, Option<uint>) { self.iter.size_hint() }
800
}
801
802
impl<'a, A, T: DoubleEndedIterator<A>> DoubleEndedIterator<A> for ByRef<'a, T> {
0 commit comments