pub struct Entry<'a: 'g, 'g, K, V, C = BasicComparator, A: SkiplistAllocator = TursoAllocator> { /* private fields */ }Expand description
An entry in a skip list, protected by a Guard.
The lifetimes of the key and value are the same as that of the Guard
used when creating the Entry ('g). This lifetime is also constrained to
not outlive the SkipList.
Implementations§
Source§impl<'a: 'g, 'g, K: 'a, V: 'a, C, A: SkiplistAllocator> Entry<'a, 'g, K, V, C, A>
impl<'a: 'g, 'g, K: 'a, V: 'a, C, A: SkiplistAllocator> Entry<'a, 'g, 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.
Source§impl<K, V, C, A: SkiplistAllocator> Entry<'_, '_, K, V, C, A>
impl<K, V, C, A: SkiplistAllocator> Entry<'_, '_, K, V, C, A>
Source§impl<K, V, C, A: SkiplistAllocator> Entry<'_, '_, K, V, C, A>where
C: Comparator<K>,
impl<K, V, C, A: SkiplistAllocator> Entry<'_, '_, K, V, C, A>where
C: Comparator<K>,
Trait Implementations§
Source§impl<K, V, C, A: SkiplistAllocator> Clone for Entry<'_, '_, K, V, C, A>
impl<K, V, C, A: SkiplistAllocator> Clone for Entry<'_, '_, K, V, C, A>
Auto Trait Implementations§
impl<'a, 'g, K, V, C = BasicComparator, A = TursoAllocator> !RefUnwindSafe for Entry<'a, 'g, K, V, C, A>
impl<'a, 'g, K, V, C = BasicComparator, A = TursoAllocator> !Send for Entry<'a, 'g, K, V, C, A>
impl<'a, 'g, K, V, C = BasicComparator, A = TursoAllocator> !Sync for Entry<'a, 'g, K, V, C, A>
impl<'a, 'g, K, V, C = BasicComparator, A = TursoAllocator> !UnwindSafe for Entry<'a, 'g, K, V, C, A>
impl<'a, 'g, K, V, C, A> Freeze for Entry<'a, 'g, K, V, C, A>
impl<'a, 'g, K, V, C, A> Unpin for Entry<'a, 'g, K, V, C, A>
impl<'a, 'g, K, V, C, A> UnsafeUnpin for Entry<'a, 'g, 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