pub fn apply(
dir: &Path,
kind: &str,
names: Vec<String>,
changes: Vec<Change>,
now: i64,
) -> Result<Done, String>Expand description
Makes changes, the cards as they were saved first in dir; returns
what was done. When one change fails, those made before it are undone.