impl TrustedLen for vec::Drain

This commit is contained in:
Christopher Durham
2019-11-25 17:55:26 -05:00
committed by GitHub
parent a44774c3a9
commit f8a4b6d2ba
+3
View File
@@ -2701,6 +2701,9 @@ fn is_empty(&self) -> bool {
}
}
#[unstable(feature = "trusted_len", issue = "37572")]
unsafe impl<T> TrustedLen for Drain<'_, T> {}
#[stable(feature = "fused", since = "1.26.0")]
impl<T> FusedIterator for Drain<'_, T> {}