1
2
3
4
5
6
7
8
9
use crate::{alloc::AllocRef, collections::TryReserveError};

pub trait CloneIn<A: AllocRef>: Sized {
    type Cloned;

    fn clone_in(&self, a: A) -> Self::Cloned;

    fn try_clone_in(&self, a: A) -> Result<Self::Cloned, TryReserveError>;
}