Enum NearInstant

Source
pub enum NearInstant {}
Expand description

Indicates that a cloning operation is:

  • constant time
  • nonblocking (atomic operations may be fine, but acquiring a lock is not)
  • at most the overhead of a few atomic operations
  • generally, deserving of being called near-instant in speed.

The nightly-only UseCloned trait provides additional constraints, that may be worth considering.

Trait Implementations§

Source§

impl IndependentClone<NearInstant> for ()

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for AtomicBool

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for AtomicI16

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for AtomicI32

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for AtomicI64

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for AtomicI8

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for AtomicIsize

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for AtomicU16

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for AtomicU32

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for AtomicU64

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for AtomicU8

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for AtomicUsize

Source§

fn independent_clone(&self) -> Self

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

impl<T> IndependentClone<NearInstant> for Discriminant<T>

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for Duration

Source§

fn independent_clone(&self) -> Self

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

impl<T> IndependentClone<NearInstant> for Empty<T>

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for Infallible

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for Instant

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for Layout

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for NonZero<i128>

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for NonZero<i16>

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for NonZero<i32>

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for NonZero<i64>

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for NonZero<i8>

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for NonZero<isize>

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for NonZero<u128>

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for NonZero<u16>

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for NonZero<u32>

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for NonZero<u64>

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for NonZero<u8>

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for NonZero<usize>

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for Ordering

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for Ordering

Source§

fn independent_clone(&self) -> Self

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

impl<T: ?Sized> IndependentClone<NearInstant> for PhantomData<T>

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for PhantomPinned

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for RangeFull

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for ThreadId

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for TypeId

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for bool

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for char

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for f32

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for f64

Source§

fn independent_clone(&self) -> Self

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

impl<R> IndependentClone<NearInstant> for fn() -> R

Source§

fn independent_clone(&self) -> Self

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

impl<R, T1> IndependentClone<NearInstant> for fn(T1) -> R

Source§

fn independent_clone(&self) -> Self

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

impl<R, T1, T2> IndependentClone<NearInstant> for fn(T1, T2) -> R

Source§

fn independent_clone(&self) -> Self

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

impl<R, T1, T2, T3> IndependentClone<NearInstant> for fn(T1, T2, T3) -> R

Source§

fn independent_clone(&self) -> Self

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

impl<R, T1, T2, T3, T4> IndependentClone<NearInstant> for fn(T1, T2, T3, T4) -> R

Source§

fn independent_clone(&self) -> Self

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

impl<R, T1, T2, T3, T4, T5> IndependentClone<NearInstant> for fn(T1, T2, T3, T4, T5) -> R

Source§

fn independent_clone(&self) -> Self

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

impl<R, T1, T2, T3, T4, T5, T6> IndependentClone<NearInstant> for fn(T1, T2, T3, T4, T5, T6) -> R

Source§

fn independent_clone(&self) -> Self

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

impl<R, T1, T2, T3, T4, T5, T6, T7> IndependentClone<NearInstant> for fn(T1, T2, T3, T4, T5, T6, T7) -> R

Source§

fn independent_clone(&self) -> Self

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

impl<R, T1, T2, T3, T4, T5, T6, T7, T8> IndependentClone<NearInstant> for fn(T1, T2, T3, T4, T5, T6, T7, T8) -> R

Source§

fn independent_clone(&self) -> Self

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

impl<R, T1, T2, T3, T4, T5, T6, T7, T8, T9> IndependentClone<NearInstant> for fn(T1, T2, T3, T4, T5, T6, T7, T8, T9) -> R

Source§

fn independent_clone(&self) -> Self

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

impl<R, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> IndependentClone<NearInstant> for fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) -> R

Source§

fn independent_clone(&self) -> Self

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

impl<R, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> IndependentClone<NearInstant> for fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) -> R

Source§

fn independent_clone(&self) -> Self

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

impl<R, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> IndependentClone<NearInstant> for fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) -> R

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for i128

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for i16

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for i32

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for i64

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for i8

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for isize

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for u128

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for u16

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for u32

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for u64

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for u8

Source§

fn independent_clone(&self) -> Self

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

impl IndependentClone<NearInstant> for usize

Source§

fn independent_clone(&self) -> Self

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

impl MirroredClone<NearInstant> for ()

Source§

fn mirrored_clone(&self) -> Self

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

impl<T> MirroredClone<NearInstant> for Empty<T>

Source§

fn mirrored_clone(&self) -> Self

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

impl MirroredClone<NearInstant> for Infallible

Source§

fn mirrored_clone(&self) -> Self

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

impl<T: ?Sized> MirroredClone<NearInstant> for PhantomData<T>

Source§

fn mirrored_clone(&self) -> Self

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

impl MirroredClone<NearInstant> for PhantomPinned

Source§

fn mirrored_clone(&self) -> Self

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

impl MirroredClone<NearInstant> for RangeFull

Source§

fn mirrored_clone(&self) -> Self

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

impl<R> MirroredClone<NearInstant> for fn() -> R

Source§

fn mirrored_clone(&self) -> Self

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

impl<R, T1> MirroredClone<NearInstant> for fn(T1) -> R

Source§

fn mirrored_clone(&self) -> Self

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

impl<R, T1, T2> MirroredClone<NearInstant> for fn(T1, T2) -> R

Source§

fn mirrored_clone(&self) -> Self

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

impl<R, T1, T2, T3> MirroredClone<NearInstant> for fn(T1, T2, T3) -> R

Source§

fn mirrored_clone(&self) -> Self

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

impl<R, T1, T2, T3, T4> MirroredClone<NearInstant> for fn(T1, T2, T3, T4) -> R

Source§

fn mirrored_clone(&self) -> Self

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

impl<R, T1, T2, T3, T4, T5> MirroredClone<NearInstant> for fn(T1, T2, T3, T4, T5) -> R

Source§

fn mirrored_clone(&self) -> Self

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

impl<R, T1, T2, T3, T4, T5, T6> MirroredClone<NearInstant> for fn(T1, T2, T3, T4, T5, T6) -> R

Source§

fn mirrored_clone(&self) -> Self

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

impl<R, T1, T2, T3, T4, T5, T6, T7> MirroredClone<NearInstant> for fn(T1, T2, T3, T4, T5, T6, T7) -> R

Source§

fn mirrored_clone(&self) -> Self

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

impl<R, T1, T2, T3, T4, T5, T6, T7, T8> MirroredClone<NearInstant> for fn(T1, T2, T3, T4, T5, T6, T7, T8) -> R

Source§

fn mirrored_clone(&self) -> Self

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

impl<R, T1, T2, T3, T4, T5, T6, T7, T8, T9> MirroredClone<NearInstant> for fn(T1, T2, T3, T4, T5, T6, T7, T8, T9) -> R

Source§

fn mirrored_clone(&self) -> Self

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

impl<R, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> MirroredClone<NearInstant> for fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) -> R

Source§

fn mirrored_clone(&self) -> Self

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

impl<R, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> MirroredClone<NearInstant> for fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) -> R

Source§

fn mirrored_clone(&self) -> Self

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

impl<R, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> MirroredClone<NearInstant> for fn(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) -> R

Source§

fn mirrored_clone(&self) -> Self

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

impl<T: ?Sized> MixedClone<NearInstant> for &T

Source§

fn mixed_clone(&self) -> Self

Get a clone that could share some but not all semantically-important mutable state. Read more
Source§

impl<T: ?Sized> MixedClone<NearInstant> for *const T

Source§

fn mixed_clone(&self) -> Self

Get a clone that could share some but not all semantically-important mutable state. Read more
Source§

impl<T: ?Sized> MixedClone<NearInstant> for *mut T

Source§

fn mixed_clone(&self) -> Self

Get a clone that could share some but not all semantically-important mutable state. Read more
Source§

impl<T> MixedClone<NearInstant> for AtomicPtr<T>

Source§

fn mixed_clone(&self) -> Self

Get a clone that could share some but not all semantically-important mutable state. Read more
Source§

impl<T: ?Sized> MixedClone<NearInstant> for NonNull<T>

Source§

fn mixed_clone(&self) -> Self

Get a clone that could share some but not all semantically-important mutable state. Read more
Source§

impl Speed for NearInstant

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.