pub trait ExtendUnchecked<T> {
// Required method
unsafe fn extend_unchecked<I: IntoIterator<Item = T>>(&mut self, iter: I);
}
Expand description
A trait for extend
without the capacity check.
Required Methods§
Sourceunsafe fn extend_unchecked<I: IntoIterator<Item = T>>(&mut self, iter: I)
unsafe fn extend_unchecked<I: IntoIterator<Item = T>>(&mut self, iter: I)
Extends a collection with the contents of an iterator without the capacity check.
§Safety
The capacity of the collection must be sufficient for the new items.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.