pub struct SoloDoc { /* private fields */ }Expand description
The single-writer degenerate document (M0a). Holds the body text directly —
no merge, no concurrent edits. A loro CrdtDoc replaces it at M2 behind the
same trait.
Implementations§
Trait Implementations§
Source§impl CrdtDoc for SoloDoc
impl CrdtDoc for SoloDoc
Source§fn materialize(&self) -> Rope
fn materialize(&self) -> Rope
The current materialized text the renderer consumes (SABER §5 render
border). Realized at M0a.
Source§fn apply_update(&mut self, _update: &CrdtUpdate) -> Result<(), SpecError>
fn apply_update(&mut self, _update: &CrdtUpdate) -> Result<(), SpecError>
Apply a wire delta from another replica (SABER §2
CrdtUpdate).
M2 work — degenerate docs have no wire form. Read moreAuto Trait Implementations§
impl Freeze for SoloDoc
impl RefUnwindSafe for SoloDoc
impl Send for SoloDoc
impl Sync for SoloDoc
impl Unpin for SoloDoc
impl UnsafeUnpin for SoloDoc
impl UnwindSafe for SoloDoc
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