Skip to main content

record_values

Function record_values 

Source
pub fn record_values<R>(f: impl FnOnce() -> R) -> (R, Vec<Change>)
Expand description

record_changes, with prior/new values captured on every field write inside f: the form an undo unit needs. Costs one clone per write while active, nothing when not.