pub trait WithClone: Sized {
type Cloned;
// Required method
fn with_clone<R>(&self, with: impl FnOnce(Self::Cloned) -> R) -> R;
}Expand description
Invokes a function with a clone of self.
Required Associated Types§
Required Methods§
sourcefn with_clone<R>(&self, with: impl FnOnce(Self::Cloned) -> R) -> R
fn with_clone<R>(&self, with: impl FnOnce(Self::Cloned) -> R) -> R
Maps with with the results of cloning self.
Object Safety§
This trait is not object safe.