pub struct Move;
Expand description
Destructuring by move, e.g. let (a, b) = c
where c
is a value.
Move destructuring forgets the original value and moves each destructured
field during restructuring. Move destructuring may not use rest patterns
(..
) because every field of the original value must be restructured, else
they will be forgotten.
Auto Trait Implementations§
impl Freeze for Move
impl RefUnwindSafe for Move
impl Send for Move
impl Sync for Move
impl Unpin for Move
impl UnwindSafe for Move
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more