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

Method eq

src/models/atomic_array.rs:12–17  ·  view source on GitHub ↗
(&self, other: &Self)

Source from the content-addressed store, hash-verified

10#[cfg(test)]
11impl<T: PartialEq, const N: usize> PartialEq for AtomicArray<T, N> {
12 fn eq(&self, other: &Self) -> bool {
13 self.items.len() == other.items.len()
14 && self.items.iter().zip(&other.items).all(|(s, o)| unsafe {
15 s.load(Ordering::Relaxed).as_ref() == o.load(Ordering::Relaxed).as_ref()
16 })
17 }
18}
19
20#[cfg(test)]

Callers

nothing calls this directly

Calls 3

loadMethod · 0.80
lenMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected