MCPcopy Create free account
hub / github.com/AppFlowy-IO/AppFlowy-Collab / clear

Method clear

collab/src/core/array_wrapper.rs:167–170  ·  view source on GitHub ↗
(&self, txn: &mut TransactionMut)

Source from the content-addressed store, hash-verified

165 }
166
167 fn clear(&self, txn: &mut TransactionMut) {
168 let len = self.array_ref().len(txn);
169 self.array_ref().remove_range(txn, 0, len);
170 }
171}
172
173impl ArrayRefExtension for ArrayRef {

Callers

nothing calls this directly

Implementers 1

array_wrapper.rscollab/src/core/array_wrapper.rs

Calls 2

array_refMethod · 0.45
remove_rangeMethod · 0.45

Tested by

no test coverage detected