pub trait Apply<Res> {
// Provided methods
fn apply<F>(self, f: F) -> Res
where F: FnOnce(Self) -> Res,
Self: Sized { ... }
fn apply_ref<F>(&self, f: F) -> Res
where F: FnOnce(&Self) -> Res { ... }
fn apply_mut<F>(&mut self, f: F) -> Res
where F: FnOnce(&mut Self) -> Res { ... }
}
Expand description
Represents a type which can have functions applied to it (implemented by default for all types).
Provided Methods§
Object Safety§
This trait is not object safe.