pub struct Mark<'a> {
pub start: usize,
pub end: usize,
/* private fields */
}
Expand description
Marks let you store out-of-bound information about sequences.
The motivating use-case is rich text editing, see https://www.inkandswitch.com/peritext/. Each position in the sequence can be affected by only one Mark of the same “name”. If multiple collaborators have set marks with the same name but different values in overlapping ranges, automerge will chose a consistent (but arbitrary) value when reading marks from the doc.
Fields§
§start: usize
§end: usize
Implementations§
Trait Implementations§
source§impl<'a> PartialEq<Mark<'a>> for Mark<'a>
impl<'a> PartialEq<Mark<'a>> for Mark<'a>
impl<'a> StructuralPartialEq for Mark<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Mark<'a>
impl<'a> Send for Mark<'a>
impl<'a> Sync for Mark<'a>
impl<'a> Unpin for Mark<'a>
impl<'a> UnwindSafe for Mark<'a>
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