pub trait OffsetSizeTrait: ArrowNativeType + Ord {
const IS_LARGE: bool;
const ZERO: Self;
const BINARY_TYPE: DataType;
const UTF8_TYPE: DataType;
// Required methods
fn to_usize(self) -> Option<usize>;
fn from_usize(value: usize) -> Option<Self>;
fn as_i64(self) -> i64;
}Expand description
The offset width of a variable-length array: i32 or i64.
Sealed through ArrowNativeType, so the set stays exactly these two.
Required Associated Constants§
Sourceconst BINARY_TYPE: DataType
const BINARY_TYPE: DataType
The Binary/LargeBinary type for this offset width.
Required Methods§
Sourcefn to_usize(self) -> Option<usize>
fn to_usize(self) -> Option<usize>
Converts to usize, or None when negative or too large for the host.
Sourcefn from_usize(value: usize) -> Option<Self>
fn from_usize(value: usize) -> Option<Self>
Converts from usize, or None when the value does not fit.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".