MCPcopy Create free account
hub / github.com/apache/arrow-rs / eq

Method eq

arrow-buffer/src/buffer/boolean.rs:107–115  ·  view source on GitHub ↗
(&self, other: &Self)

Source from the content-addressed store, hash-verified

105
106impl PartialEq for BooleanBuffer {
107 fn eq(&self, other: &Self) -> bool {
108 if self.bit_len != other.bit_len {
109 return false;
110 }
111
112 let lhs = self.bit_chunks().iter_padded();
113 let rhs = other.bit_chunks().iter_padded();
114 lhs.zip(rhs).all(|(a, b)| a == b)
115 }
116}
117
118impl BooleanBuffer {

Callers

nothing calls this directly

Calls 4

iter_paddedMethod · 0.80
allMethod · 0.80
zipMethod · 0.80
bit_chunksMethod · 0.45

Tested by

no test coverage detected