Skip to main content

OffsetSizeTrait

Trait OffsetSizeTrait 

pub trait OffsetSizeTrait:
    ArrowNativeType
    + AddAssign
    + Integer
    + CheckedAdd {
    const IS_LARGE: bool;
    const PREFIX: &'static str;
    const MAX_OFFSET: usize;
}
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

const MAX_OFFSET: usize

The max usize offset

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

§

impl OffsetSizeTrait for i32

§

const IS_LARGE: bool = false

§

const PREFIX: &'static str = ""

§

const MAX_OFFSET: usize

§

impl OffsetSizeTrait for i64

§

const IS_LARGE: bool = true

§

const PREFIX: &'static str = "Large"

§

const MAX_OFFSET: usize

Implementors§