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() > 0
offsets[i] >= offsets[i-1] for all i
offsets[i] < values.len() for all i