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

Method insert

src/models/atomic_array.rs:91–93  ·  view source on GitHub ↗
(&self, idx: usize, value: *mut T)

Source from the content-addressed store, hash-verified

89 }
90
91 pub fn insert(&self, idx: usize, value: *mut T) {
92 self.items[idx].store(value, Ordering::SeqCst);
93 }
94
95 pub fn get_or_insert<F>(&self, idx: usize, mut f: F) -> (*mut T, bool)
96 where

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected