[−][src]Function esl01_drawdag::commit
pub fn commit(
dag: &BTreeMap<String, BTreeSet<String>>,
commit_func: impl FnMut(String, Vec<Box<[u8]>>) -> Box<[u8]>
)
Commit the DAG by using the given commit function.
The commit function takes two arguments: Commit identity by the ASCII dag,
and parents defined by the commit function. The commit function returns the
identity of the committed change, and this function will use them as parents
passed into the future commit_func
calls.