pub trait TransformExt<S, Req>: Transform<S, Req> {
    // Provided method
    fn map_init_err<F, E>(self, f: F) -> TransformMapInitErr<Self, S, Req, F, E>
       where Self: Sized,
             F: Fn(Self::InitError) -> E + Clone { ... }
}
Expand description

An extension trait for Transforms that provides a variety of convenient adapters.

Provided Methods§

source

fn map_init_err<F, E>(self, f: F) -> TransformMapInitErr<Self, S, Req, F, E>where Self: Sized, F: Fn(Self::InitError) -> E + Clone,

Return a new Transform whose init error is mapped to to a different type.

Implementors§

source§

impl<T, Req> TransformExt<T, Req> for Twhere T: Transform<T, Req>,