Skip to content
Snippets Groups Projects
Commit 108819a2 authored by Evy Storozhenko's avatar Evy Storozhenko
Browse files

implement size_hint

parent 205adcbd
No related branches found
No related tags found
No related merge requests found
......@@ -55,6 +55,11 @@ impl<'a, T: Clone> Iterator for MatrixCollumn<'a, T> {
None
}
}
fn size_hint(&self) -> (usize, Option<usize>) {
let remaining = (self.parent.parent.height - self.index) as usize;
(remaining, Some(remaining))
}
}
impl<'a, T: Clone> ExactSizeIterator for MatrixCollumn<'a, T> {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment