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§
source§impl<'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