CloneAnd

Trait CloneAnd 

Source
pub trait CloneAnd
where Self: Clone,
{ // Provided method fn clone_and<F>(&self, f: F) -> Self where F: FnOnce(&mut Self) { ... } }

Provided Methods§

Source

fn clone_and<F>(&self, f: F) -> Self
where F: FnOnce(&mut Self),

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<T> CloneAnd for T
where T: Clone,