[][src]Trait refpool::PoolClone

pub trait PoolClone: 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.


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...


impl<A> PoolClone for A where
    A: PoolDefaultImpl + Clone

Loading content...