rustc_data_structures::flat_map_in_place

Trait FlatMapInPlace

Source
pub trait FlatMapInPlace<T>: Sized {
    // Required method
    fn flat_map_in_place<F, I>(&mut self, f: F)
       where F: FnMut(T) -> I,
             I: IntoIterator<Item = T>;
}

Required Methods§

Source

fn flat_map_in_place<F, I>(&mut self, f: F)
where F: FnMut(T) -> I, I: IntoIterator<Item = T>,

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.

Implementations on Foreign Types§

Source§

impl<T> FlatMapInPlace<T> for Vec<T>

Source§

fn flat_map_in_place<F, I>(&mut self, f: F)
where F: FnMut(T) -> I, I: IntoIterator<Item = T>,

Source§

impl<T> FlatMapInPlace<T> for ThinVec<T>

Source§

fn flat_map_in_place<F, I>(&mut self, f: F)
where F: FnMut(T) -> I, I: IntoIterator<Item = T>,

Source§

impl<T, A: Array<Item = T>> FlatMapInPlace<T> for SmallVec<A>

Source§

fn flat_map_in_place<F, I>(&mut self, f: F)
where F: FnMut(T) -> I, I: IntoIterator<Item = T>,

Implementors§