Trait With

Source
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§

Source

fn with<F>(&mut self, f: F)

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.

Implementors§

Source§

impl<ContentType> With<ContentType> for Shared<ContentType>