pub unsafe trait MoveExt<R: Region>: Move<R> {
    fn move_unsized(this: In<Val<'_, Self>, R>, out: In<Slot<'_, Self>, R>);
    fn move(this: In<Val<'_, Self>, R>, out: In<Slot<'_, Self>, R>)
    where
        Self: Sized
; fn move_(this: In<Val<'_, Self>, R>, out: In<Slot<'_, Self>, R>)
    where
        Self: Sized
; }
Expand description

An extension trait for Move that provides a variety of convenient movement methods.

Safety

move_unsized and r#move/move_ must initialize their out parameters.

Required Methods

Moves a value into a given slot within some memory region.

Panics

Panics if out does not have the same metadata as this.

Moves a Sized value into a given slot within some memory region.

Moves a Sized value into a given slot within some memory region.

This is an alternate name for move, which uses a raw identifier in the name.

Implementors