Trait ByteArrayType
pub trait ByteArrayType:
'static
+ Send
+ Sync
+ ByteArrayTypeSealed {
type Offset: OffsetSizeTrait;
type Native: ByteArrayNativeType + AsRef<Self::Native> + AsRef<[u8]> + ?Sized;
const PREFIX: &'static str;
const DATA_TYPE: DataType;
// Required method
fn validate(
offsets: &OffsetBuffer<Self::Offset>,
values: &Buffer,
) -> Result<(), ArrowError>;
}
Expand description
A trait over the variable-size byte array types
Required Associated Constants§
Required Associated Types§
type Offset: OffsetSizeTrait
type Offset: OffsetSizeTrait
Type of offset i.e i32/i64
Required Methods§
fn validate(
offsets: &OffsetBuffer<Self::Offset>,
values: &Buffer,
) -> Result<(), ArrowError>
fn validate( offsets: &OffsetBuffer<Self::Offset>, values: &Buffer, ) -> Result<(), ArrowError>
Verifies that every consecutive pair of offsets
denotes a valid slice of values
Object Safety§
This trait is not object safe.