pub struct RefEntry<'a, K, V, C = BasicComparator, A: SkiplistAllocator = TursoAllocator> { /* 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, C: 'a, A: SkiplistAllocator> RefEntry<'a, K, V, C, A>
impl<'a, K: 'a, V: 'a, C: 'a, A: SkiplistAllocator> RefEntry<'a, K, V, C, A>
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.
Source§impl<K, V, C, A: SkiplistAllocator> RefEntry<'_, K, V, C, A>
impl<K, V, C, A: SkiplistAllocator> RefEntry<'_, K, V, C, A>
Source§impl<K, V, C, A: SkiplistAllocator> RefEntry<'_, K, V, C, A>where
C: Comparator<K>,
impl<K, V, C, A: SkiplistAllocator> RefEntry<'_, K, V, C, A>where
C: Comparator<K>,
Trait Implementations§
Source§impl<K, V, C, A: SkiplistAllocator> Clone for RefEntry<'_, K, V, C, A>
impl<K, V, C, A: SkiplistAllocator> Clone for RefEntry<'_, K, V, C, A>
Auto Trait Implementations§
impl<'a, K, V, C = BasicComparator, A = TursoAllocator> !RefUnwindSafe for RefEntry<'a, K, V, C, A>
impl<'a, K, V, C = BasicComparator, A = TursoAllocator> !UnwindSafe for RefEntry<'a, K, V, C, A>
impl<'a, K, V, C, A> Freeze for RefEntry<'a, K, V, C, A>
impl<'a, K, V, C, A> Send for RefEntry<'a, K, V, C, A>
impl<'a, K, V, C, A> Sync for RefEntry<'a, K, V, C, A>
impl<'a, K, V, C, A> Unpin for RefEntry<'a, K, V, C, A>
impl<'a, K, V, C, A> UnsafeUnpin for RefEntry<'a, K, V, C, A>
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more