Trait datafusion_common::utils::DataPtr
source · pub trait DataPtr {
// Required method
fn data_ptr(this: &Self) -> *const ();
// Provided method
fn data_ptr_eq(this: &Self, other: &Self) -> bool { ... }
}
Expand description
An extension trait for smart pointers. Provides an interface to get a raw pointer to the data (with metadata stripped away).
This is useful to see if two smart pointers point to the same allocation.
Required Methods§
Provided Methods§
sourcefn data_ptr_eq(this: &Self, other: &Self) -> bool
fn data_ptr_eq(this: &Self, other: &Self) -> bool
Check if two pointers point to the same data.