Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/fadeevab/design-patterns-rust
/ undo
Method
undo
behavioral/command/command/cut.rs:24–27 ·
view source on GitHub ↗
(&mut self, app: &mut Cursive)
Source
from the content-addressed store, hash-verified
22
}
23
24
fn undo(&mut self, app: &mut Cursive) {
25
let mut editor = app.find_name::<EditView>(
"Editor"
).unwrap();
26
editor.set_content(&self.backup);
27
}
28
}
Callers
1
undo
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected