/// The capacity will remain at least as large as both the length
/// and the supplied value.
///
+ /// # Panics
+ ///
/// Panics if the current capacity is smaller than the supplied
/// minimum capacity.
///
}
}
+#[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> {}
old_len: usize,
/// The filter test predicate.
pred: F,
- /// A flag that indicates a panic has occured in the filter test prodicate.
+ /// A flag that indicates a panic has occurred in the filter test prodicate.
/// This is used as a hint in the drop implmentation to prevent consumption
/// of the remainder of the `DrainFilter`. Any unprocessed items will be
/// backshifted in the `vec`, but no further items will be dropped or