pub unsafe trait GenericBinaryArray<O>: Arraywhere
O: Offset,{
// 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() > 0
offsets[i] >= offsets[i-1] for all i
offsets[i] < values.len() for all i