pub struct CursorMutModel<Key, Value> {
pub keys: Seq<Key>,
pub position: int,
pub map: Map<Key, Value>,
}Expand description
The abstract state of a mutable B-tree cursor.
A cursor points at the gap immediately before keys[position]. Therefore peek_next
accesses keys[position], while peek_prev accesses keys[position - 1].
Fields§
§keys: Seq<Key>All keys in the underlying map, in strictly increasing order.
position: intThe index of the element immediately after the cursor.
map: Map<Key, Value>The current contents of the complete map borrowed by the cursor.
Implementations§
Source§impl<Key, Value> CursorMutModel<Key, Value>
impl<Key, Value> CursorMutModel<Key, Value>
Auto Trait Implementations§
impl<Key, Value> Freeze for CursorMutModel<Key, Value>
impl<Key, Value> RefUnwindSafe for CursorMutModel<Key, Value>where
Key: RefUnwindSafe,
Value: RefUnwindSafe,
impl<Key, Value> Send for CursorMutModel<Key, Value>
impl<Key, Value> Sync for CursorMutModel<Key, Value>
impl<Key, Value> Unpin for CursorMutModel<Key, Value>
impl<Key, Value> UnsafeUnpin for CursorMutModel<Key, Value>
impl<Key, Value> UnwindSafe for CursorMutModel<Key, Value>where
Key: UnwindSafe,
Value: UnwindSafe,
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