pub trait MapLayer<B> {
    type Unwrapped;
    type To;

    fn map_layer<F: FnMut(Self::Unwrapped) -> B>(self, f: F) -> Self::To;
}
Expand description

Provides the ability to map over some structure ‘Layer’, such that ‘Self’ is ‘Layer’, via a function ‘Fn(Unwrapped) -> B’ producing a value ‘To’ such ‘To’ is ‘Layer’.

The function provided to map_layer MUST be strictly applied.

Required Associated Types

Required Methods

Implementors