pub trait ApplyOnce<Rhs> {
type Output;
// Required method
fn apply_once(self, rhs: Rhs) -> Self::Output;
}Expand description
The ApplyOnce trait consumes the container and applies the given function to every
element before returning a new container with the results.