arrow::array::array

Trait OffsetSizeTrait

pub trait OffsetSizeTrait:
    ArrowNativeType
    + AddAssign
    + Integer {
    const IS_LARGE: bool;
    const PREFIX: &'static str;
}
Expand description

A type that can be used within a variable-size array to encode offset information

See ListArray, LargeListArray, BinaryArray, LargeBinaryArray, StringArray and LargeStringArray

Required Associated Constants§

const IS_LARGE: bool

True for 64 bit offset size and false for 32 bit offset size

const PREFIX: &'static str

Prefix for the offset size

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

§

impl OffsetSizeTrait for i32

§

const IS_LARGE: bool = false

§

const PREFIX: &'static str = ""

§

impl OffsetSizeTrait for i64

§

const IS_LARGE: bool = true

§

const PREFIX: &'static str = "Large"

Implementors§