impl TrustedLen for vec::Drain
This commit is contained in:
parent
a44774c3a9
commit
f8a4b6d2ba
1 changed files with 3 additions and 0 deletions
|
@ -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> {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue