Trait StdMove

Source
pub trait StdMove: Sized {
    // Required method
    fn std_move(&mut self) -> Self;
}
Expand description

Simply copy self, or replace self with a simple instance

Required Methods§

Source

fn std_move(&mut self) -> Self

Simply copy self, or replace self with a simple instance

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl StdMove for Ordering

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for Ordering

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for bool

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for char

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for f32

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for f64

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for i8

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for i16

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for i32

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for i64

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for i128

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for isize

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for u8

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for u16

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for u32

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for u64

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for u128

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for ()

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for usize

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for CString

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for String

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for PhantomPinned

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for OsString

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for PathBuf

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for NonZeroI8

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for NonZeroI16

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for NonZeroI32

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for NonZeroI64

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for NonZeroI128

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for NonZeroIsize

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for NonZeroU8

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for NonZeroU16

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for NonZeroU32

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for NonZeroU64

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for NonZeroU128

Source§

fn std_move(&mut self) -> Self

Source§

impl StdMove for NonZeroUsize

Source§

fn std_move(&mut self) -> Self

Source§

impl<K, V> StdMove for BTreeMap<K, V>

Source§

fn std_move(&mut self) -> Self

Source§

impl<K, V, S: Default> StdMove for HashMap<K, V, S>

Source§

fn std_move(&mut self) -> Self

Source§

impl<T0> StdMove for (T0,)
where T0: StdMove,

This trait is implemented for tuples up to 12 items long.

Source§

fn std_move(&mut self) -> Self

Source§

impl<T> StdMove for Option<T>

Source§

fn std_move(&mut self) -> Self

Source§

impl<T> StdMove for Poll<T>

Source§

fn std_move(&mut self) -> Self

Source§

impl<T> StdMove for BTreeSet<T>

Source§

fn std_move(&mut self) -> Self

Source§

impl<T> StdMove for LinkedList<T>

Source§

fn std_move(&mut self) -> Self

Source§

impl<T> StdMove for VecDeque<T>

Source§

fn std_move(&mut self) -> Self

Source§

impl<T> StdMove for Rc<T>

Source§

fn std_move(&mut self) -> Self

Source§

impl<T> StdMove for Arc<T>

Source§

fn std_move(&mut self) -> Self

Source§

impl<T> StdMove for Vec<T>

Source§

fn std_move(&mut self) -> Self

Source§

impl<T> StdMove for MaybeUninit<T>

Source§

fn std_move(&mut self) -> Self

Source§

impl<T, S: Default> StdMove for HashSet<T, S>

Source§

fn std_move(&mut self) -> Self

Source§

impl<T: ToOwned> StdMove for Cow<'_, T>
where T::Owned: StdMove,

Source§

fn std_move(&mut self) -> Self

Source§

impl<T: Ord> StdMove for BinaryHeap<T>

Source§

fn std_move(&mut self) -> Self

Source§

impl<T: StdMove> StdMove for Reverse<T>

Source§

fn std_move(&mut self) -> Self

Source§

impl<T: StdMove, const N: usize> StdMove for [T; N]

Source§

fn std_move(&mut self) -> Self

Source§

impl<T: ?Sized> StdMove for *const T

Source§

fn std_move(&mut self) -> Self

Source§

impl<T: ?Sized> StdMove for *mut T

Source§

fn std_move(&mut self) -> Self

Source§

impl<T: ?Sized> StdMove for &T

Source§

fn std_move(&mut self) -> Self

Source§

impl<T: ?Sized> StdMove for PhantomData<T>

Source§

fn std_move(&mut self) -> Self

Source§

impl<T: ?Sized> StdMove for NonNull<T>

Source§

fn std_move(&mut self) -> Self

Implementors§