pub unsafe trait GenericBinaryArray<O: Offset>: Array {
    fn values(&self) -> &[u8]Notable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8];
    fn offsets(&self) -> &[O]Notable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8];
}
Expand description

Trait that BinaryArray and Utf8Array implement for the purposes of DRY.

Safety

The implementer must ensure that

  1. offsets.len() > 0
  2. offsets[i] >= offsets[i-1] for all i
  3. offsets[i] < values.len() for all i

Required Methods

The values of the array

The offsets of the array

Implementors