[][src]Trait swim_mem::resident::ResidentClone

pub trait ResidentClone<L1: Lease, L2: Lease>: Resident {
    fn new_resident_layout(lease: &L1) -> Layout;
fn resident_clone(src: &L1, dst: &mut L2) -> Result<(), HoldError>; }

A cloneable Resident of a raw memory Lease.

Required methods

fn new_resident_layout(lease: &L1) -> Layout

Returns the preferred memory layout of a clone destination for the resident of the lease.

fn resident_clone(src: &L1, dst: &mut L2) -> Result<(), HoldError>

Clones the resident of the src lease into the dst lease.

Loading content...

Implementors

impl<L1, L2, M> ResidentClone<L1, L2> for Box<str, L1::Meta> where
    L1: Lease<Data = str, Meta = M>,
    L2: Lease<Data = str, Meta = M>,
    M: TryClone
[src]

impl<L1, L2, M> ResidentClone<L1, L2> for String<M> where
    L1: Lease<Data = u8, Meta = BufHeader<M>>,
    L2: Lease<Data = u8, Meta = BufHeader<M>>,
    M: TryClone
[src]

impl<L1, L2, T, M> ResidentClone<L1, L2> for Box<[T], M> where
    L1: Lease<Data = [T], Meta = M>,
    L2: Lease<Data = [T], Meta = M>,
    T: TryClone,
    M: TryClone
[src]

impl<L1, L2, T, M> ResidentClone<L1, L2> for Buf<T, M> where
    L1: Lease<Data = T, Meta = BufHeader<M>>,
    L2: Lease<Data = T, Meta = BufHeader<M>>,
    T: TryClone,
    M: TryClone
[src]

impl<L1, L2, T: ?Sized, M> ResidentClone<L1, L2> for Box<T, M> where
    L1: Lease<Data = T, Meta = M>,
    L2: Lease<Data = T, Meta = M>,
    T: TryClone,
    M: TryClone
[src]

Loading content...