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
sourcefn move_unsized(this: In<Val<'_, Self>, R>, out: In<Slot<'_, Self>, R>)
fn move_unsized(this: In<Val<'_, Self>, R>, out: In<Slot<'_, Self>, R>)
Moves a value into a given slot within some memory region.
Panics
Panics if out does not have the same metadata as this.