pub enum Cursor<'a, K, V> {
ReadOnly(RoCursor<'a>),
ReadWrite(RwCursor<'a>),
Phantom(Hidden<K, V>),
}
Expand description
Iterable access to the database
Variants
ReadOnly(RoCursor<'a>)
Readonly access
ReadWrite(RwCursor<'a>)
Read-write access
Phantom(Hidden<K, V>)
Type information
Implementations
sourceimpl<'a, K: Key, V: Value<'a>> Cursor<'a, K, V>
impl<'a, K: Key, V: Value<'a>> Cursor<'a, K, V>
sourcepub fn is_read_only(&self) -> bool
pub fn is_read_only(&self) -> bool
Returns true when the transaction is ReadOnly
sourcepub fn iter_from(&mut self, key: &'a K) -> Iter<'a, K, V>
pub fn iter_from(&mut self, key: &'a K) -> Iter<'a, K, V>
Iterate over key/values pairs starting at key
Auto Trait Implementations
impl<'a, K, V> RefUnwindSafe for Cursor<'a, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, K, V> !Send for Cursor<'a, K, V>
impl<'a, K, V> !Sync for Cursor<'a, K, V>
impl<'a, K, V> Unpin for Cursor<'a, K, V>where
K: Unpin,
V: Unpin,
impl<'a, K, V> UnwindSafe for Cursor<'a, K, V>where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more