@@ -4,7 +4,7 @@ use smallvec::SmallVec;
44
55use crate :: borrow:: { DestroyableMutRef , DestroyableRef , DormantMutRef } ;
66use crate :: entry:: { ItemEntry , NodeMaybeMut , XEntry } ;
7- use crate :: mark:: XMark ;
7+ use crate :: mark:: { NoneMark , XMark } ;
88use crate :: node:: XNode ;
99use crate :: xarray:: { XArray , MAX_HEIGHT , SLOT_SIZE } ;
1010
@@ -198,7 +198,7 @@ impl<'a, I: ItemEntry> CursorState<'a, I, ReadWrite> {
198198/// `XArray` at the same time.
199199///
200200/// The typical way to obtain a `Cursor` instance is to call [`XArray::cursor`].
201- pub struct Cursor < ' a , I , M >
201+ pub struct Cursor < ' a , I , M = NoneMark >
202202where
203203 I : ItemEntry ,
204204 M : Into < XMark > ,
@@ -409,7 +409,7 @@ impl<'a, I: ItemEntry> NodeMutRef<'a, I> {
409409/// the `XArray`. However, just before performing the modification, `CursorMut` will create
410410/// exclusive copies by cloning shared items, which guarantees the isolation of data stored in
411411/// different `XArray`s.
412- pub struct CursorMut < ' a , I , M >
412+ pub struct CursorMut < ' a , I , M = NoneMark >
413413where
414414 I : ItemEntry ,
415415 M : Into < XMark > ,
0 commit comments