pub trait With<ContentType> {
// Required method
fn with<F>(&mut self, f: F)
where F: FnOnce(&mut ContentType);
}Expand description
Trait to provide a with method for Shared<ContentType>
Required Methods§
fn with<F>(&mut self, f: F)where
F: FnOnce(&mut ContentType),
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.