pub struct Swap;Expand description
Swaps two distinct positions. Works for any Vec<T>.
Trait Implementations§
impl Copy for Swap
impl Eq for Swap
impl StructuralPartialEq for Swap
Auto Trait Implementations§
impl Forget for Swap
impl Freeze for Swap
impl Move for Swap
impl RefUnwindSafe for Swap
impl Send for Swap
impl Sync for Swap
impl Unpin for Swap
impl UnsafeUnpin for Swap
impl UnwindSafe for Swap
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