MaybeSlow

Enum MaybeSlow 

Source
pub enum MaybeSlow {}
Expand description

Places no constraints on the speed of a cloning operation.

Trait Implementations§

Source§

impl<T, const N: usize> DeepClone<MaybeSlow> for [T; N]
where T: ?Sized + DeepClone<MaybeSlow>,

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T1: DeepClone<MaybeSlow>> DeepClone<MaybeSlow> for (T1,)

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T1: DeepClone<MaybeSlow>, T2: DeepClone<MaybeSlow>> DeepClone<MaybeSlow> for (T1, T2)

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T1: DeepClone<MaybeSlow>, T2: DeepClone<MaybeSlow>, T3: DeepClone<MaybeSlow>> DeepClone<MaybeSlow> for (T1, T2, T3)

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T1: DeepClone<MaybeSlow>, T2: DeepClone<MaybeSlow>, T3: DeepClone<MaybeSlow>, T4: DeepClone<MaybeSlow>> DeepClone<MaybeSlow> for (T1, T2, T3, T4)

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T1: DeepClone<MaybeSlow>, T2: DeepClone<MaybeSlow>, T3: DeepClone<MaybeSlow>, T4: DeepClone<MaybeSlow>, T5: DeepClone<MaybeSlow>> DeepClone<MaybeSlow> for (T1, T2, T3, T4, T5)

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T1: DeepClone<MaybeSlow>, T2: DeepClone<MaybeSlow>, T3: DeepClone<MaybeSlow>, T4: DeepClone<MaybeSlow>, T5: DeepClone<MaybeSlow>, T6: DeepClone<MaybeSlow>> DeepClone<MaybeSlow> for (T1, T2, T3, T4, T5, T6)

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T1: DeepClone<MaybeSlow>, T2: DeepClone<MaybeSlow>, T3: DeepClone<MaybeSlow>, T4: DeepClone<MaybeSlow>, T5: DeepClone<MaybeSlow>, T6: DeepClone<MaybeSlow>, T7: DeepClone<MaybeSlow>> DeepClone<MaybeSlow> for (T1, T2, T3, T4, T5, T6, T7)

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T1: DeepClone<MaybeSlow>, T2: DeepClone<MaybeSlow>, T3: DeepClone<MaybeSlow>, T4: DeepClone<MaybeSlow>, T5: DeepClone<MaybeSlow>, T6: DeepClone<MaybeSlow>, T7: DeepClone<MaybeSlow>, T8: DeepClone<MaybeSlow>> DeepClone<MaybeSlow> for (T1, T2, T3, T4, T5, T6, T7, T8)

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T1: DeepClone<MaybeSlow>, T2: DeepClone<MaybeSlow>, T3: DeepClone<MaybeSlow>, T4: DeepClone<MaybeSlow>, T5: DeepClone<MaybeSlow>, T6: DeepClone<MaybeSlow>, T7: DeepClone<MaybeSlow>, T8: DeepClone<MaybeSlow>, T9: DeepClone<MaybeSlow>> DeepClone<MaybeSlow> for (T1, T2, T3, T4, T5, T6, T7, T8, T9)

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T1: DeepClone<MaybeSlow>, T2: DeepClone<MaybeSlow>, T3: DeepClone<MaybeSlow>, T4: DeepClone<MaybeSlow>, T5: DeepClone<MaybeSlow>, T6: DeepClone<MaybeSlow>, T7: DeepClone<MaybeSlow>, T8: DeepClone<MaybeSlow>, T9: DeepClone<MaybeSlow>, T10: DeepClone<MaybeSlow>> DeepClone<MaybeSlow> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T1: DeepClone<MaybeSlow>, T2: DeepClone<MaybeSlow>, T3: DeepClone<MaybeSlow>, T4: DeepClone<MaybeSlow>, T5: DeepClone<MaybeSlow>, T6: DeepClone<MaybeSlow>, T7: DeepClone<MaybeSlow>, T8: DeepClone<MaybeSlow>, T9: DeepClone<MaybeSlow>, T10: DeepClone<MaybeSlow>, T11: DeepClone<MaybeSlow>> DeepClone<MaybeSlow> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T1: DeepClone<MaybeSlow>, T2: DeepClone<MaybeSlow>, T3: DeepClone<MaybeSlow>, T4: DeepClone<MaybeSlow>, T5: DeepClone<MaybeSlow>, T6: DeepClone<MaybeSlow>, T7: DeepClone<MaybeSlow>, T8: DeepClone<MaybeSlow>, T9: DeepClone<MaybeSlow>, T10: DeepClone<MaybeSlow>, T11: DeepClone<MaybeSlow>, T12: DeepClone<MaybeSlow>> DeepClone<MaybeSlow> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T> DeepClone<MaybeSlow> for Arc<T>
where T: ?Sized + DeepClone<MaybeSlow>,

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<K, V> DeepClone<MaybeSlow> for BTreeMap<K, V>

Available on crate feature alloc only.
Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T> DeepClone<MaybeSlow> for BTreeSet<T>
where T: Ord + DeepClone<MaybeSlow>,

Available on crate feature alloc only.
Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T> DeepClone<MaybeSlow> for BinaryHeap<T>
where T: Ord + DeepClone<MaybeSlow>,

Available on crate feature alloc only.
Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T: DeepClone<MaybeSlow>> DeepClone<MaybeSlow> for Box<[T]>

Available on crate feature alloc only.
Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T> DeepClone<MaybeSlow> for Box<T>
where T: DeepClone<MaybeSlow>,

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl DeepClone<MaybeSlow> for Box<str>

Available on crate feature alloc only.
Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T> DeepClone<MaybeSlow> for Cell<T>
where T: Copy + DeepClone<MaybeSlow>,

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<K, V, S> DeepClone<MaybeSlow> for HashMap<K, V, S>

Available on crate feature std only.
Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T, S> DeepClone<MaybeSlow> for HashSet<T, S>

Available on crate feature std only.
Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T: DeepClone<MaybeSlow>> DeepClone<MaybeSlow> for LinkedList<T>

Available on crate feature alloc only.
Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T: DeepClone<MaybeSlow>> DeepClone<MaybeSlow> for ManuallyDrop<T>

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T: DeepClone<MaybeSlow>> DeepClone<MaybeSlow> for Mutex<T>

Source§

fn deep_clone(&self) -> Self

§Panics or Deadlocks

Panics if the Mutex is poisoned.

Will either panic or deadlock if the current thread already holds the mutex.

Source§

impl<T: DeepClone<MaybeSlow>> DeepClone<MaybeSlow> for Option<T>

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T> DeepClone<MaybeSlow> for Pin<Arc<T>>
where T: ?Sized + DeepClone<MaybeSlow>,

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T: DeepClone<MaybeSlow>> DeepClone<MaybeSlow> for Pin<Box<[T]>>

Available on crate feature alloc only.
Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl DeepClone<MaybeSlow> for Pin<Box<str>>

Available on crate feature alloc only.
Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T> DeepClone<MaybeSlow> for Pin<Rc<T>>
where T: ?Sized + DeepClone<MaybeSlow>,

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T> DeepClone<MaybeSlow> for Rc<T>
where T: ?Sized + DeepClone<MaybeSlow>,

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T: DeepClone<MaybeSlow>> DeepClone<MaybeSlow> for RefCell<T>

Source§

fn deep_clone(&self) -> Self

§Panics

Panics if the value is currently mutably borrowed.

Source§

impl<T: DeepClone<MaybeSlow>, E: DeepClone<MaybeSlow>> DeepClone<MaybeSlow> for Result<T, E>

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T: DeepClone<MaybeSlow>> DeepClone<MaybeSlow> for RwLock<T>

Source§

fn deep_clone(&self) -> Self

§Panics

Panics if the RwLock is poisoned.

Source§

impl<T: DeepClone<MaybeSlow>> DeepClone<MaybeSlow> for Vec<T>

Available on crate feature alloc only.
Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T: DeepClone<MaybeSlow>> DeepClone<MaybeSlow> for VecDeque<T>

Available on crate feature alloc only.
Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T> DeepClone<MaybeSlow> for Weak<T>
where T: ?Sized + DeepClone<MaybeSlow>,

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T> DeepClone<MaybeSlow> for Weak<T>
where T: ?Sized + DeepClone<MaybeSlow>,

Source§

fn deep_clone(&self) -> Self

Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§

impl<T1: MirroredClone<MaybeSlow>> MirroredClone<MaybeSlow> for (T1,)

Source§

fn mirrored_clone(&self) -> Self

Get a clone that shares all semantically-important mutable state with its source. Read more
Source§

impl<T1: MirroredClone<MaybeSlow>, T2: MirroredClone<MaybeSlow>> MirroredClone<MaybeSlow> for (T1, T2)

Source§

fn mirrored_clone(&self) -> Self

Get a clone that shares all semantically-important mutable state with its source. Read more
Source§

impl<T1: MirroredClone<MaybeSlow>, T2: MirroredClone<MaybeSlow>, T3: MirroredClone<MaybeSlow>> MirroredClone<MaybeSlow> for (T1, T2, T3)

Source§

fn mirrored_clone(&self) -> Self

Get a clone that shares all semantically-important mutable state with its source. Read more
Source§

impl<T1: MirroredClone<MaybeSlow>, T2: MirroredClone<MaybeSlow>, T3: MirroredClone<MaybeSlow>, T4: MirroredClone<MaybeSlow>> MirroredClone<MaybeSlow> for (T1, T2, T3, T4)

Source§

fn mirrored_clone(&self) -> Self

Get a clone that shares all semantically-important mutable state with its source. Read more
Source§

impl<T1: MirroredClone<MaybeSlow>, T2: MirroredClone<MaybeSlow>, T3: MirroredClone<MaybeSlow>, T4: MirroredClone<MaybeSlow>, T5: MirroredClone<MaybeSlow>> MirroredClone<MaybeSlow> for (T1, T2, T3, T4, T5)

Source§

fn mirrored_clone(&self) -> Self

Get a clone that shares all semantically-important mutable state with its source. Read more
Source§

impl<T1: MirroredClone<MaybeSlow>, T2: MirroredClone<MaybeSlow>, T3: MirroredClone<MaybeSlow>, T4: MirroredClone<MaybeSlow>, T5: MirroredClone<MaybeSlow>, T6: MirroredClone<MaybeSlow>> MirroredClone<MaybeSlow> for (T1, T2, T3, T4, T5, T6)

Source§

fn mirrored_clone(&self) -> Self

Get a clone that shares all semantically-important mutable state with its source. Read more
Source§

impl<T1: MirroredClone<MaybeSlow>, T2: MirroredClone<MaybeSlow>, T3: MirroredClone<MaybeSlow>, T4: MirroredClone<MaybeSlow>, T5: MirroredClone<MaybeSlow>, T6: MirroredClone<MaybeSlow>, T7: MirroredClone<MaybeSlow>> MirroredClone<MaybeSlow> for (T1, T2, T3, T4, T5, T6, T7)

Source§

fn mirrored_clone(&self) -> Self

Get a clone that shares all semantically-important mutable state with its source. Read more
Source§

impl<T1: MirroredClone<MaybeSlow>, T2: MirroredClone<MaybeSlow>, T3: MirroredClone<MaybeSlow>, T4: MirroredClone<MaybeSlow>, T5: MirroredClone<MaybeSlow>, T6: MirroredClone<MaybeSlow>, T7: MirroredClone<MaybeSlow>, T8: MirroredClone<MaybeSlow>> MirroredClone<MaybeSlow> for (T1, T2, T3, T4, T5, T6, T7, T8)

Source§

fn mirrored_clone(&self) -> Self

Get a clone that shares all semantically-important mutable state with its source. Read more
Source§

impl<T1: MirroredClone<MaybeSlow>, T2: MirroredClone<MaybeSlow>, T3: MirroredClone<MaybeSlow>, T4: MirroredClone<MaybeSlow>, T5: MirroredClone<MaybeSlow>, T6: MirroredClone<MaybeSlow>, T7: MirroredClone<MaybeSlow>, T8: MirroredClone<MaybeSlow>, T9: MirroredClone<MaybeSlow>> MirroredClone<MaybeSlow> for (T1, T2, T3, T4, T5, T6, T7, T8, T9)

Source§

fn mirrored_clone(&self) -> Self

Get a clone that shares all semantically-important mutable state with its source. Read more
Source§

impl<T1: MirroredClone<MaybeSlow>, T2: MirroredClone<MaybeSlow>, T3: MirroredClone<MaybeSlow>, T4: MirroredClone<MaybeSlow>, T5: MirroredClone<MaybeSlow>, T6: MirroredClone<MaybeSlow>, T7: MirroredClone<MaybeSlow>, T8: MirroredClone<MaybeSlow>, T9: MirroredClone<MaybeSlow>, T10: MirroredClone<MaybeSlow>> MirroredClone<MaybeSlow> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

Source§

fn mirrored_clone(&self) -> Self

Get a clone that shares all semantically-important mutable state with its source. Read more
Source§

impl<T1: MirroredClone<MaybeSlow>, T2: MirroredClone<MaybeSlow>, T3: MirroredClone<MaybeSlow>, T4: MirroredClone<MaybeSlow>, T5: MirroredClone<MaybeSlow>, T6: MirroredClone<MaybeSlow>, T7: MirroredClone<MaybeSlow>, T8: MirroredClone<MaybeSlow>, T9: MirroredClone<MaybeSlow>, T10: MirroredClone<MaybeSlow>, T11: MirroredClone<MaybeSlow>> MirroredClone<MaybeSlow> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

Source§

fn mirrored_clone(&self) -> Self

Get a clone that shares all semantically-important mutable state with its source. Read more
Source§

impl<T1: MirroredClone<MaybeSlow>, T2: MirroredClone<MaybeSlow>, T3: MirroredClone<MaybeSlow>, T4: MirroredClone<MaybeSlow>, T5: MirroredClone<MaybeSlow>, T6: MirroredClone<MaybeSlow>, T7: MirroredClone<MaybeSlow>, T8: MirroredClone<MaybeSlow>, T9: MirroredClone<MaybeSlow>, T10: MirroredClone<MaybeSlow>, T11: MirroredClone<MaybeSlow>, T12: MirroredClone<MaybeSlow>> MirroredClone<MaybeSlow> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)

Source§

fn mirrored_clone(&self) -> Self

Get a clone that shares all semantically-important mutable state with its source. Read more
Source§

impl Speed for MaybeSlow

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.