pub struct FrozenRef<'f, T: 'f + ?Sized> { /* private fields */ }
Expand description
A FrozenRef
is essentially a FrozenValue
,
and has the same memory and access guarantees as it.
However, this keeps the type of the type T
of the actual
FrozenValue
as a
reference, allowing manipulation of the actual typed data.
Implementations§
source§impl<'f, T: 'f + ?Sized> FrozenRef<'f, T>
impl<'f, T: 'f + ?Sized> FrozenRef<'f, T>
Trait Implementations§
source§impl<'f, T: 'f + ?Sized> Allocative for FrozenRef<'f, T>
impl<'f, T: 'f + ?Sized> Allocative for FrozenRef<'f, T>
source§impl<'f, T> Ord for FrozenRef<'f, T>
impl<'f, T> Ord for FrozenRef<'f, T>
source§impl<'f, T> PartialEq for FrozenRef<'f, T>
impl<'f, T> PartialEq for FrozenRef<'f, T>
source§impl<'f, T> PartialOrd for FrozenRef<'f, T>where
T: PartialOrd + 'f + ?Sized,
impl<'f, T> PartialOrd for FrozenRef<'f, T>where
T: PartialOrd + 'f + ?Sized,
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<'f, T: 'f + ?Sized> Copy for FrozenRef<'f, T>
impl<'f, T> Eq for FrozenRef<'f, T>
Auto Trait Implementations§
impl<'f, T: ?Sized> RefUnwindSafe for FrozenRef<'f, T>where
T: RefUnwindSafe,
impl<'f, T: ?Sized> Send for FrozenRef<'f, T>where
T: Sync,
impl<'f, T: ?Sized> Sync for FrozenRef<'f, T>where
T: Sync,
impl<'f, T: ?Sized> Unpin for FrozenRef<'f, T>
impl<'f, T: ?Sized> UnwindSafe for FrozenRef<'f, T>where
T: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.