Flatten

Trait Flatten 

Source
pub trait Flatten {
    type Output;

    // Required method
    fn flatten(self) -> Self::Output;
}
Expand description

The operation that flattens nested container types.

Required Associated Types§

Required Methods§

Source

fn flatten(self) -> Self::Output

Implementations on Foreign Types§

Source§

impl<K, L, V> Flatten for HashMap<K, HashMap<L, V>>
where K: Eq + Hash + Clone, L: Eq + Hash,

Source§

type Output = HashMap<(K, L), V>

Source§

fn flatten(self) -> Self::Output

Source§

impl<K, V> Flatten for Vec<HashMap<K, V>>
where K: Eq + Hash + Clone,

Source§

type Output = HashMap<(usize, K), V>

Source§

fn flatten(self) -> Self::Output

Source§

impl<K, V> Flatten for HashMap<K, Vec<V>>
where K: Eq + Hash + Clone,

Source§

type Output = HashMap<(K, usize), V>

Source§

fn flatten(self) -> Self::Output

Source§

impl<T> Flatten for Vec<Option<T>>

Source§

type Output = Vec<T>

Source§

fn flatten(self) -> Self::Output

Source§

impl<T> Flatten for Vec<Vec<T>>

Source§

type Output = Vec<T>

Source§

fn flatten(self) -> Self::Output

Implementors§