pub unsafe trait GenericBinaryArray<O>: Array
where 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

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

Required Methods§

source

fn values(&self) -> &[u8]

The values of the array

source

fn offsets(&self) -> &[O]

The offsets of the array

Implementors§

source§

impl<O> GenericBinaryArray<O> for BinaryArray<O>
where O: Offset,

source§

impl<O> GenericBinaryArray<O> for Utf8Array<O>
where O: Offset,