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
.
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.