Struct skipdb::ReadTransaction
source · pub struct ReadTransaction<K, V, I, C> { /* private fields */ }
Expand description
A read only transaction over the [OptimisticDb
],
Implementations§
source§impl<K, V, I, C> ReadTransaction<K, V, I, C>where
K: Ord,
I: Database<K, V>,
impl<K, V, I, C> ReadTransaction<K, V, I, C>where
K: Ord,
I: Database<K, V>,
sourcepub fn contains_key<Q>(&self, key: &Q) -> bool
pub fn contains_key<Q>(&self, key: &Q) -> bool
Returns true if the given key exists in the database.
sourcepub fn iter_rev(&self) -> RevIter<'_, K, V> ⓘ
pub fn iter_rev(&self) -> RevIter<'_, K, V> ⓘ
Returns a reverse iterator over the entries of the database.
Auto Trait Implementations§
impl<K, V, I, C> Freeze for ReadTransaction<K, V, I, C>where
I: Freeze,
impl<K, V, I, C> !RefUnwindSafe for ReadTransaction<K, V, I, C>
impl<K, V, I, C> Send for ReadTransaction<K, V, I, C>
impl<K, V, I, C> Sync for ReadTransaction<K, V, I, C>
impl<K, V, I, C> Unpin for ReadTransaction<K, V, I, C>
impl<K, V, I, C> !UnwindSafe for ReadTransaction<K, V, I, C>
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
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