mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
impl TrustedLen for vec::Drain
This commit is contained in:
committed by
GitHub
parent
a44774c3a9
commit
f8a4b6d2ba
@@ -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> {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user