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

Method insert_array

collab/src/core/any_map.rs:125–129  ·  view source on GitHub ↗

Insert the maps with the given key. It will override the old maps with the same id.

(&mut self, key: K, items: Vec<T>)

Source from the content-addressed store, hash-verified

123 /// Insert the maps with the given key.
124 /// It will override the old maps with the same id.
125 fn insert_array<K: AsRef<str>, T: Into<AnyMap>>(&mut self, key: K, items: Vec<T>) {
126 let key = key.as_ref();
127 let array = items_to_lib_0_array(items);
128 self.mut_value().insert(key.to_string(), array);
129 }
130
131 /// Extends the maps with the given key.
132 fn extend_with_array<K: AsRef<str>, T: Into<AnyMap>>(&mut self, key: K, items: Vec<T>) {

Callers 1

insert_mapsMethod · 0.45

Implementers 1

any_map.rscollab/src/core/any_map.rs

Calls 4

items_to_lib_0_arrayFunction · 0.85
mut_valueMethod · 0.80
as_refMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected