pub struct RefEntry<'a, K, V> { /* private fields */ }Expand description
A reference-counted entry in a skip list.
You must call release to free this type, otherwise the node will be
leaked. This is because releasing the entry requires a Guard.
Implementations§
Source§impl<'a, K: 'a, V: 'a> RefEntry<'a, K, V>
impl<'a, K: 'a, V: 'a> RefEntry<'a, K, V>
Sourcepub fn is_removed(&self) -> bool
pub fn is_removed(&self) -> bool
Returns true if the entry is removed from the skip list.
Sourcepub fn release_with_pin<F>(self, pin: F)
pub fn release_with_pin<F>(self, pin: F)
Releases the reference of the entry, pinning the thread only when the reference count of the node becomes 0.
Trait Implementations§
Auto Trait Implementations§
impl<'a, K, V> !RefUnwindSafe for RefEntry<'a, K, V>
impl<'a, K, V> !UnwindSafe for RefEntry<'a, K, V>
impl<'a, K, V> Freeze for RefEntry<'a, K, V>
impl<'a, K, V> Send for RefEntry<'a, K, V>
impl<'a, K, V> Sync for RefEntry<'a, K, V>
impl<'a, K, V> Unpin for RefEntry<'a, K, V>
impl<'a, K, V> UnsafeUnpin for RefEntry<'a, K, V>
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