pub trait Flatten<T>: FlatLen {
// Required method
fn flatten<E>(&self, output: &mut E)
where E: Extend<T>;
// Provided method
fn flatten_vec(&self) -> Vec<T> { ... }
}
Expand description
Flatten a structure into a list.
Required Methods§
Provided Methods§
sourcefn flatten_vec(&self) -> Vec<T>
fn flatten_vec(&self) -> Vec<T>
Flatten into a Vec
.
Object Safety§
This trait is not object safe.