pub fn snapshot(label: &str)Expand description
Record the current stack so undo can restore it. The label names the
operation being undone. No-ops after the first call in a process, and is
best effort: a snapshot failure never blocks the command itself.