rustc_data_structures::unord

Trait ExtendUnord

source
pub trait ExtendUnord<T> {
    // Required method
    fn extend_unord<I: Iterator<Item = T>>(&mut self, items: UnordItems<T, I>);
}

Required Methods§

source

fn extend_unord<I: Iterator<Item = T>>(&mut self, items: UnordItems<T, I>)

Extend this unord collection with the given UnordItems. This method is called extend_unord instead of just extend so it does not conflict with Extend::extend. Otherwise there would be many places where the two methods would have to be explicitly disambiguated via UFCS.

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<C: Extend<T> + UnordCollection, T> ExtendUnord<T> for C