1
Fork 0

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2701,6 +2701,9 @@ impl<T> ExactSizeIterator for Drain<'_, T> {
}
}
#[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> {}