fn rewrite(s: &Session, change: &Rewrite) -> Result<(), String>
Writes what makes a tie: a note through the notes, a task or an event as an item of its collection.