[][src]Trait refpool::PoolClone

pub trait PoolClone: PoolDefault + Clone {
    unsafe fn clone_uninit(&self, target: &mut MaybeUninit<Self>);
}

A trait for cloning a value into a MaybeUninit<Self>.

Required methods

unsafe fn clone_uninit(&self, target: &mut MaybeUninit<Self>)

Clone an instance of Self into an uninitialised instance of Self.

Safety

You should assume that the object as passed to you contains uninitialised memory, and you must leave it in a fully initialised state, as expected by MaybeUninit::assume_init().

Loading content...

Implementors

impl<A> PoolClone for A where
    A: PoolDefaultImpl + Clone
[src]

Loading content...