pub fn step(
scope: Scope<'_>,
version: u32,
before: &Doc,
) -> Result<Change, AutomergeError>Expand description
The step that brings the record scope names to version: the change every holder makes alike,
under an actor derived from the record, its workspace and the version alone, at time zero,
writing the version key and nothing else. before holds exactly the link it follows, the
record’s founding for the first version and the step to the version before otherwise, so the
chain a record stands on is one every holder derives (crate::founding::chain), however its
content went on meanwhile.
§Errors
When before holds no heads to step from, or the step cannot be committed.