pub trait Also: Sized {
// Provided method
fn also<F>(self, block: F) -> Self
where F: FnOnce(&mut Self) { ... }
}
Expand description
Represents a type that you can apply arbitrary functions to. Useful for when a method doesn’t return the receiver but you want to apply several of them to the object.
Provided Methods§
Object Safety§
This trait is not object safe.