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
Source§impl<T, U> IntoSpecImpl<U> for Twhere
U: From<T>,
impl<T, U> IntoSpecImpl<U> for Twhere
U: From<T>,
impl<A> SpecEq<&A> for Awhere
A: ?Sized,
impl<A> SpecEq<&mut A> for Awhere
A: ?Sized,
impl<A> SpecEq<A> for Awhere
A: ?Sized,
impl<A> SpecEq<Ghost<A>> for A
impl<A> SpecEq<Tracked<A>> for A
Source§impl<T, VERUS_SPEC__A> TryFromSpec<T> for VERUS_SPEC__Awhere
VERUS_SPEC__A: TryFrom<T>,
impl<T, VERUS_SPEC__A> TryFromSpec<T> for VERUS_SPEC__Awhere
VERUS_SPEC__A: TryFrom<T>,
Source§exec fn obeys_try_from_spec() -> bool
exec fn obeys_try_from_spec() -> bool
Source§impl<T, VERUS_SPEC__A> TryIntoSpec<T> for VERUS_SPEC__Awhere
VERUS_SPEC__A: TryInto<T>,
impl<T, VERUS_SPEC__A> TryIntoSpec<T> for VERUS_SPEC__Awhere
VERUS_SPEC__A: TryInto<T>,
Source§exec fn obeys_try_into_spec() -> bool
exec fn obeys_try_into_spec() -> bool
Source§impl<T, U> TryIntoSpecImpl<U> for Twhere
U: TryFrom<T>,
impl<T, U> TryIntoSpecImpl<U> for Twhere
U: TryFrom<T>,
Source§open spec fn obeys_try_into_spec() -> bool
open spec fn obeys_try_into_spec() -> bool
{ <U as TryFromSpec<Self>>::obeys_try_from_spec() }