pub trait Collapse<A, Wrapped> {
fn collapse_layers<F: FnMut(Wrapped) -> A>(self, collapse_layer: F) -> A;
}
Expand description
Support for collapsing a structure into a single value, one layer at a time
Required Methods
source
pub trait Collapse<A, Wrapped> {
fn collapse_layers<F: FnMut(Wrapped) -> A>(self, collapse_layer: F) -> A;
}
Support for collapsing a structure into a single value, one layer at a time