pub unsafe trait GenericBinaryArray<O: Offset>: Array {
// Required methods
fn values(&self) -> &[u8] ⓘ;
fn offsets(&self) -> &[O];
}Expand description
Trait that BinaryArray and Utf8Array implement for the purposes of DRY.
§Safety
The implementer must ensure that
offsets.len() > 0offsets[i] >= offsets[i-1] for all ioffsets[i] < values.len() for all i
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".