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

Method fmt

src/models/atomic_array.rs:22–30  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

20#[cfg(test)]
21impl<T: std::fmt::Debug, const N: usize> std::fmt::Debug for AtomicArray<T, N> {
22 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
23 f.debug_list()
24 .entries(
25 self.items
26 .iter()
27 .map(|i| unsafe { i.load(Ordering::Relaxed).as_ref() }),
28 )
29 .finish()
30 }
31}
32
33impl<T, const N: usize> Default for AtomicArray<T, N> {

Callers

nothing calls this directly

Calls 2

loadMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected