MCPcopy Create free account
hub / github.com/cosdata/cosdata / clone

Method clone

src/models/versioned_vec.rs:95–103  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

93#[cfg(test)]
94impl<T> Clone for VersionedVec<T> {
95 fn clone(&self) -> Self {
96 Self {
97 serialized_at: RwLock::new(*self.serialized_at.read().unwrap()),
98 version: self.version,
99 list: self.list.clone(),
100 next: self.next.clone(),
101 _marker: PhantomData,
102 }
103 }
104}
105
106impl<T: VersionedVecItem> VersionedVec<T> {

Callers 15

mainFunction · 0.80
newMethod · 0.80
search_recursiveMethod · 0.80
generate_test_dataFunction · 0.80
exhaustive_searchFunction · 0.80
mainFunction · 0.80
ruleFunction · 0.80
insert_nodeMethod · 0.80
add_versionMethod · 0.80

Calls 1

readMethod · 0.45