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

Method as_map

collab/src/util.rs:24–26  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

22pub trait MapExt: Map {
23 #[inline]
24 fn as_map(&self) -> MapRef {
25 MapRef::from(BranchPtr::from(self.as_ref()))
26 }
27
28 fn get_id(&self, txn: &impl ReadTxn) -> Option<Arc<str>> {
29 let out = self.get(txn, "id")?;

Callers 3

get_value_with_pathMethod · 0.80
insert_with_pathMethod · 0.80
remove_with_pathMethod · 0.80

Implementers 1

util.rscollab/src/util.rs

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected