Struct starnix_uapi::arc_key::WeakKey
source · pub struct WeakKey<T>(pub Weak<T>, _);
Expand description
A wrapper around Weak with Hash implemented based on Weak::as_ptr.
Tuple Fields§
§0: Weak<T>
Implementations§
Trait Implementations§
source§impl<T> Ord for WeakKey<T>
impl<T> Ord for WeakKey<T>
source§impl<T> PartialEq for WeakKey<T>
impl<T> PartialEq for WeakKey<T>
source§impl<T> PartialOrd for WeakKey<T>
impl<T> PartialOrd for WeakKey<T>
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> Eq for WeakKey<T>
Auto Trait Implementations§
impl<T> Freeze for WeakKey<T>
impl<T> RefUnwindSafe for WeakKey<T>where
T: RefUnwindSafe,
impl<T> Send for WeakKey<T>
impl<T> Sync for WeakKey<T>
impl<T> Unpin for WeakKey<T>
impl<T> UnwindSafe for WeakKey<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