Skip to main content

replace_items

Function replace_items 

Source
pub fn replace_items(
    gone: &[PathBuf],
    made: &[(PathBuf, String)],
    to: &Path,
    text: &str,
) -> Result<(), String>
Expand description

Items made another (a task made an appointment, an appointment a task, 21 October 2026): gone (the first, then what goes with it: a task’s time blocks) replaced by to, written as text, with made written just before it (a time block for the task an event becomes). The same steps as a move: noted, made then to written, gone taken out, the note gone. Cut short before to is whole, made is taken back and gone kept; after, gone is taken out (finish_moves): never both, never neither.