Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/atomicdotdev/atomic
/ delete
Method
delete
atomic-core/src/crdt/leaf.rs:241–243 ·
view source on GitHub ↗
Marks the leaf as deleted.
(&mut self)
Source
from the content-addressed store, hash-verified
239
240
/// Marks the leaf as deleted.
241
pub fn delete(&mut self) {
242
self.state = LeafState::Deleted;
243
}
244
245
/// Restores a deleted leaf to alive.
246
pub fn restore(&mut self) {
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