[][src]Trait transfer::Transfer

pub unsafe trait Transfer {
    unsafe fn transfer(src: &mut PinStack<Self>, dst: *mut Self)
    where
        Self: Sized
;
fn empty() -> Tr<Self>; }

Safety

  • Implementers must write a valid Self to the dst argument of transfer
  • 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 the dst pointer that was written to in the transfer function

Required methods

unsafe fn transfer(src: &mut PinStack<Self>, dst: *mut Self) where
    Self: Sized

Safety

  • Callers of this function must call reset on the src argument right afterwards.
  • dst must point to a Self instance, that can possibly be uninitialized
  • src and dest must point to different instances.

fn empty() -> Tr<Self>

Loading content...

Implementors

Loading content...