[−][src]Trait transfer::Transfer
Safety
- Implementers must write a valid
Self
to thedst
argument oftransfer
- Implementers are not allowed to panic in the
transfer
function - Implementers must reset
pin
to a value that can be safely dropped without incidence on thedst
pointer that was written to in thetransfer
function
Required methods
unsafe fn transfer(src: &mut PinStack<Self>, dst: *mut Self) where
Self: Sized,
Self: Sized,
Safety
- Callers of this function must call
reset
on thesrc
argument right afterwards. dst
must point to aSelf
instance, that can possibly be uninitializedsrc
anddest
must point to different instances.