ExtendUnord in rustc_data_structures::unord - Rust
Description: API documentation for the Rust `ExtendUnord` trait in crate `rustc_data_structures`.

Skip to main content

## ExtendUnord

# 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