8000
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 c5f1c76 + e26c881 commit 6f6e343Copy full SHA for 6f6e343
core/src/error.rs
@@ -1008,8 +1008,15 @@ impl<'a> Iterator for Source<'a> {
1008
self.current = self.current.and_then(Error::source);
1009
current
1010
}
1011
+
1012
+ fn size_hint(&self) -> (usize, Option<usize>) {
1013
+ if self.current.is_some() { (1, None) } else { (0, Some(0)) }
1014
+ }
1015
1016
1017
+#[unstable(feature = "error_iter", issue = "58520")]
1018
+impl<'a> crate::iter::FusedIterator for Source<'a> {}
1019
1020
#[stable(feature = "error_by_ref", since = "1.51.0")]
1021
impl<'a, T: Error + ?Sized> Error for &'a T {
1022
#[allow(deprecated, deprecated_in_future)]
0 commit comments