1 2 3 4 5 6 7 8 9 10 11
use crate::alloc::AllocRef; pub trait CloneIn<A: AllocRef>: Sized { type Cloned; fn clone_in(&self, a: A) -> Self::Cloned where A: AllocRef<Error = crate::Never>; fn try_clone_in(&self, a: A) -> Result<Self::Cloned, A::Error>; }