pub trait Apply {
type In;
type Out;
fn apply(&self, a: Self::In) -> Self::Out;
}
Expand description
The Apply trait makes it possible to apply a unary function inside a wrapper. The apply method does not take ownership over the wrapper, but it does take ownership over the argument.