Fast

Enum Fast 

Source
pub enum Fast {}
Expand description

Indicates that a cloning operation is constant-time.

This might be nearly instant, or involve briefly acquiring a lock and performing a few computations.

Trait Implementations§

Source§

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

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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

impl<T1: DeepClone<Fast>> DeepClone<Fast> 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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

impl<T1: DeepClone<Fast>, T2: DeepClone<Fast>> DeepClone<Fast> 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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

impl<T1: DeepClone<Fast>, T2: DeepClone<Fast>, T3: DeepClone<Fast>> DeepClone<Fast> 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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

impl<T1: DeepClone<Fast>, T2: DeepClone<Fast>, T3: DeepClone<Fast>, T4: DeepClone<Fast>> DeepClone<Fast> 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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

impl<T1: DeepClone<Fast>, T2: DeepClone<Fast>, T3: DeepClone<Fast>, T4: DeepClone<Fast>, T5: DeepClone<Fast>> DeepClone<Fast> 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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

impl<T1: DeepClone<Fast>, T2: DeepClone<Fast>, T3: DeepClone<Fast>, T4: DeepClone<Fast>, T5: DeepClone<Fast>, T6: DeepClone<Fast>> DeepClone<Fast> 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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

impl<T1: DeepClone<Fast>, T2: DeepClone<Fast>, T3: DeepClone<Fast>, T4: DeepClone<Fast>, T5: DeepClone<Fast>, T6: DeepClone<Fast>, T7: DeepClone<Fast>> DeepClone<Fast> 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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

impl<T1: DeepClone<Fast>, T2: DeepClone<Fast>, T3: DeepClone<Fast>, T4: DeepClone<Fast>, T5: DeepClone<Fast>, T6: DeepClone<Fast>, T7: DeepClone<Fast>, T8: DeepClone<Fast>> DeepClone<Fast> 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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

impl<T1: DeepClone<Fast>, T2: DeepClone<Fast>, T3: DeepClone<Fast>, T4: DeepClone<Fast>, T5: DeepClone<Fast>, T6: DeepClone<Fast>, T7: DeepClone<Fast>, T8: DeepClone<Fast>, T9: DeepClone<Fast>> DeepClone<Fast> 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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

impl<T1: DeepClone<Fast>, T2: DeepClone<Fast>, T3: DeepClone<Fast>, T4: DeepClone<Fast>, T5: DeepClone<Fast>, T6: DeepClone<Fast>, T7: DeepClone<Fast>, T8: DeepClone<Fast>, T9: DeepClone<Fast>, T10: DeepClone<Fast>> DeepClone<Fast> 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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

impl<T1: DeepClone<Fast>, T2: DeepClone<Fast>, T3: DeepClone<Fast>, T4: DeepClone<Fast>, T5: DeepClone<Fast>, T6: DeepClone<Fast>, T7: DeepClone<Fast>, T8: DeepClone<Fast>, T9: DeepClone<Fast>, T10: DeepClone<Fast>, T11: DeepClone<Fast>> DeepClone<Fast> 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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

impl<T1: DeepClone<Fast>, T2: DeepClone<Fast>, T3: DeepClone<Fast>, T4: DeepClone<Fast>, T5: DeepClone<Fast>, T6: DeepClone<Fast>, T7: DeepClone<Fast>, T8: DeepClone<Fast>, T9: DeepClone<Fast>, T10: DeepClone<Fast>, T11: DeepClone<Fast>, T12: DeepClone<Fast>> DeepClone<Fast> 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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

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

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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

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

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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

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

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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

impl<T: DeepClone<Fast>> DeepClone<Fast> 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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

impl<T: DeepClone<Fast>> DeepClone<Fast> 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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

impl<T: DeepClone<Fast>> DeepClone<Fast> 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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

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

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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

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

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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

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

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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

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

Source§

fn deep_clone(&self) -> Self

§Panics

Panics if the value is currently mutably borrowed.

Source§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

impl<T: DeepClone<Fast>, E: DeepClone<Fast>> DeepClone<Fast> 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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

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

Source§

fn deep_clone(&self) -> Self

§Panics

Panics if the RwLock is poisoned.

Source§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

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

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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

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

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§

fn fast_deep_clone(&self) -> Self
where S: FastSpeed,

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

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

Source§

fn mirrored_clone(&self) -> Self

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

fn fast_mirrored_clone(&self) -> Self
where S: FastSpeed,

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

impl<T1: MirroredClone<Fast>, T2: MirroredClone<Fast>> MirroredClone<Fast> 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§

fn fast_mirrored_clone(&self) -> Self
where S: FastSpeed,

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

impl<T1: MirroredClone<Fast>, T2: MirroredClone<Fast>, T3: MirroredClone<Fast>> MirroredClone<Fast> 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§

fn fast_mirrored_clone(&self) -> Self
where S: FastSpeed,

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

impl<T1: MirroredClone<Fast>, T2: MirroredClone<Fast>, T3: MirroredClone<Fast>, T4: MirroredClone<Fast>> MirroredClone<Fast> 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§

fn fast_mirrored_clone(&self) -> Self
where S: FastSpeed,

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

impl<T1: MirroredClone<Fast>, T2: MirroredClone<Fast>, T3: MirroredClone<Fast>, T4: MirroredClone<Fast>, T5: MirroredClone<Fast>> MirroredClone<Fast> 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§

fn fast_mirrored_clone(&self) -> Self
where S: FastSpeed,

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

impl<T1: MirroredClone<Fast>, T2: MirroredClone<Fast>, T3: MirroredClone<Fast>, T4: MirroredClone<Fast>, T5: MirroredClone<Fast>, T6: MirroredClone<Fast>> MirroredClone<Fast> 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§

fn fast_mirrored_clone(&self) -> Self
where S: FastSpeed,

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

impl<T1: MirroredClone<Fast>, T2: MirroredClone<Fast>, T3: MirroredClone<Fast>, T4: MirroredClone<Fast>, T5: MirroredClone<Fast>, T6: MirroredClone<Fast>, T7: MirroredClone<Fast>> MirroredClone<Fast> 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§

fn fast_mirrored_clone(&self) -> Self
where S: FastSpeed,

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

impl<T1: MirroredClone<Fast>, T2: MirroredClone<Fast>, T3: MirroredClone<Fast>, T4: MirroredClone<Fast>, T5: MirroredClone<Fast>, T6: MirroredClone<Fast>, T7: MirroredClone<Fast>, T8: MirroredClone<Fast>> MirroredClone<Fast> 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§

fn fast_mirrored_clone(&self) -> Self
where S: FastSpeed,

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

impl<T1: MirroredClone<Fast>, T2: MirroredClone<Fast>, T3: MirroredClone<Fast>, T4: MirroredClone<Fast>, T5: MirroredClone<Fast>, T6: MirroredClone<Fast>, T7: MirroredClone<Fast>, T8: MirroredClone<Fast>, T9: MirroredClone<Fast>> MirroredClone<Fast> 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§

fn fast_mirrored_clone(&self) -> Self
where S: FastSpeed,

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

impl<T1: MirroredClone<Fast>, T2: MirroredClone<Fast>, T3: MirroredClone<Fast>, T4: MirroredClone<Fast>, T5: MirroredClone<Fast>, T6: MirroredClone<Fast>, T7: MirroredClone<Fast>, T8: MirroredClone<Fast>, T9: MirroredClone<Fast>, T10: MirroredClone<Fast>> MirroredClone<Fast> 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§

fn fast_mirrored_clone(&self) -> Self
where S: FastSpeed,

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

impl<T1: MirroredClone<Fast>, T2: MirroredClone<Fast>, T3: MirroredClone<Fast>, T4: MirroredClone<Fast>, T5: MirroredClone<Fast>, T6: MirroredClone<Fast>, T7: MirroredClone<Fast>, T8: MirroredClone<Fast>, T9: MirroredClone<Fast>, T10: MirroredClone<Fast>, T11: MirroredClone<Fast>> MirroredClone<Fast> 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§

fn fast_mirrored_clone(&self) -> Self
where S: FastSpeed,

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

impl<T1: MirroredClone<Fast>, T2: MirroredClone<Fast>, T3: MirroredClone<Fast>, T4: MirroredClone<Fast>, T5: MirroredClone<Fast>, T6: MirroredClone<Fast>, T7: MirroredClone<Fast>, T8: MirroredClone<Fast>, T9: MirroredClone<Fast>, T10: MirroredClone<Fast>, T11: MirroredClone<Fast>, T12: MirroredClone<Fast>> MirroredClone<Fast> 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§

fn fast_mirrored_clone(&self) -> Self
where S: FastSpeed,

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

impl FastSpeed for Fast

Source§

impl Speed for Fast

Auto Trait Implementations§

§

impl Freeze for Fast

§

impl RefUnwindSafe for Fast

§

impl Send for Fast

§

impl Sync for Fast

§

impl Unpin for Fast

§

impl UnwindSafe for Fast

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.