Traitsยง
- Apply
Applyis a trait that allows for mapping over a reference to a typeTby applying a functionFto it, producing a new typeU. The result is wrapped in a container type defined by the implementor of the trait.- Apply
Mut - The
ApplyMuttrait allows for in-place mapping of a mutable reference to a typeT - Apply
Once - A the
ApplyOncetrait is similar to [Map], but it consumes the instance instead of borrowing it;