Trait rs::util::CloneOwned
source · [−]pub trait CloneOwned {
type Owned;
fn clone_owned(&self) -> Self::Owned;
}
Expand description
Clones the underlying data structure, like ToOwned.
Required Associated Types
Required Methods
fn clone_owned(&self) -> Self::Owned
Implementors
sourceimpl<T: Clone> CloneOwned for Wrapped<T>
impl<T: Clone> CloneOwned for Wrapped<T>
ToOwned won’t work here
because it’s really difficult to implement Borrow on Wrapped