pub struct Cursor { /* private fields */ }
Expand description
An identifier of a position in a Sequence (either Self::List or Self::Text).
Every element in an Automerge Sequence can be internally identified with an operation ID. While ExId is our default external representation of the Operation ID, it can be quite heavy. Therefore, we use this lightweight specialized structure.
This can be persisted using Self::to_bytes()
and TryFrom<&[u8]>
.
A cursor is obtained from ReadDoc::get_cursor()
and dereferenced with
ReadDoc::get_cursor_position()
.
Implementations§
Trait Implementations§
source§impl PartialEq for Cursor
impl PartialEq for Cursor
impl StructuralPartialEq for Cursor
Auto Trait Implementations§
impl Freeze for Cursor
impl RefUnwindSafe for Cursor
impl Send for Cursor
impl Sync for Cursor
impl Unpin for Cursor
impl UnwindSafe for Cursor
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