Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/atomicdotdev/atomic
/ restore
Method
restore
atomic-core/src/crdt/leaf.rs:246–248 ·
view source on GitHub ↗
Restores a deleted leaf to alive.
(&mut self)
Source
from the content-addressed store, hash-verified
244
245
/// Restores a deleted leaf to alive.
246
pub fn restore(&mut self) {
247
self.state = LeafState::Alive;
248
}
249
}
250
251
impl fmt::Display for Leaf {
Callers
2
test_deletion_preserves_id
Function · 0.45
test_leaf_delete_and_restore
Function · 0.45
Calls
no outgoing calls
Tested by
2
test_deletion_preserves_id
Function · 0.36
test_leaf_delete_and_restore
Function · 0.36