Struct arc_swap::access::ConstantDeref
source · pub struct ConstantDeref<T>(_);
Expand description
A plumbing type.
This is the guard type for Constant
. It is accessible, but is not expected to be generally
used directly.
Trait Implementations§
source§impl<T: Clone> Clone for ConstantDeref<T>
impl<T: Clone> Clone for ConstantDeref<T>
source§fn clone(&self) -> ConstantDeref<T>
fn clone(&self) -> ConstantDeref<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for ConstantDeref<T>
impl<T: Debug> Debug for ConstantDeref<T>
source§impl<T> Deref for ConstantDeref<T>
impl<T> Deref for ConstantDeref<T>
source§impl<T: Hash> Hash for ConstantDeref<T>
impl<T: Hash> Hash for ConstantDeref<T>
source§impl<T: Ord> Ord for ConstantDeref<T>
impl<T: Ord> Ord for ConstantDeref<T>
source§fn cmp(&self, other: &ConstantDeref<T>) -> Ordering
fn cmp(&self, other: &ConstantDeref<T>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq> PartialEq<ConstantDeref<T>> for ConstantDeref<T>
impl<T: PartialEq> PartialEq<ConstantDeref<T>> for ConstantDeref<T>
source§fn eq(&self, other: &ConstantDeref<T>) -> bool
fn eq(&self, other: &ConstantDeref<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: PartialOrd> PartialOrd<ConstantDeref<T>> for ConstantDeref<T>
impl<T: PartialOrd> PartialOrd<ConstantDeref<T>> for ConstantDeref<T>
source§fn partial_cmp(&self, other: &ConstantDeref<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &ConstantDeref<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T: Copy> Copy for ConstantDeref<T>
impl<T: Eq> Eq for ConstantDeref<T>
impl<T> StructuralEq for ConstantDeref<T>
impl<T> StructuralPartialEq for ConstantDeref<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for ConstantDeref<T>where
T: RefUnwindSafe,
impl<T> Send for ConstantDeref<T>where
T: Send,
impl<T> Sync for ConstantDeref<T>where
T: Sync,
impl<T> Unpin for ConstantDeref<T>where
T: Unpin,
impl<T> UnwindSafe for ConstantDeref<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T, A> DynAccess<T> for Awhere
A: Access<T>,
<A as Access<T>>::Guard: 'static,
impl<T, A> DynAccess<T> for Awhere
A: Access<T>,
<A as Access<T>>::Guard: 'static,
source§fn load(&self) -> DynGuard<T>
fn load(&self) -> DynGuard<T>
The equivalent of
Access::load
.