Skip to main content

open_doc

Function open_doc 

Source
pub fn open_doc(
    kind: CrdtKind,
    body: &str,
) -> Result<Box<dyn CrdtDoc>, SpecError>
Expand description

The typed dispatch over CrdtKind (SABER §2 “the dispatch tag”). M0a builds only Solo; Loro/YCrdt return SpecError::Unimplemented — the typed-but-degenerate border the M0a spec mandates.

§Errors

SpecError::Unimplemented for every non-Solo kind until M2.