pub trait Scope {
// Provided methods
fn with<F, R>(self, f: F) -> R
where Self: Sized,
F: FnOnce(Self) -> R { ... }
fn with_ref<F, R>(&self, f: F) -> R
where F: FnOnce(&Self) -> R { ... }
fn with_mut<F, R>(&mut self, f: F) -> R
where F: FnOnce(&mut Self) -> R { ... }
}Expand description
Scoped functional programming extensions.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".