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

Method ptr_eq

arrow-buffer/src/buffer/boolean.rs:537–541  ·  view source on GitHub ↗

Returns true if this [`BooleanBuffer`] is equal to `other`, using pointer comparisons to determine buffer equality. This is cheaper than `PartialEq::eq` but may return false when the arrays are logically equal

(&self, other: &Self)

Source from the content-addressed store, hash-verified

535 /// to determine buffer equality. This is cheaper than `PartialEq::eq` but may
536 /// return false when the arrays are logically equal
537 pub fn ptr_eq(&self, other: &Self) -> bool {
538 self.buffer.as_ptr() == other.buffer.as_ptr()
539 && self.bit_offset == other.bit_offset
540 && self.bit_len == other.bit_len
541 }
542
543 /// Returns the inner [`Buffer`]
544 ///

Callers

nothing calls this directly

Calls 1

as_ptrMethod · 0.45

Tested by

no test coverage detected