Trait ExtendUnchecked

Source
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§

Source

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.

Implementors§

Source§

impl<'a, S: GenericString> ExtendUnchecked<&'a char> for S

Source§

impl<S: GenericString> ExtendUnchecked<char> for S