pub trait FromSlice<S, E>where
    S: AsRef<[E]>,
{ fn from_slice(slice: S) -> Self; }
Expand description

A trait to define from_slice functions for arrow primitive array types

Required Methods§

convert a slice of native types into a primitive array (without nulls)

Implementations on Foreign Types§

default implementation for boolean array type, adapted from From<Vec<bool>>

default implementation for utf8 array types, adapted from From<Vec<_>>

default implementation for primitive array types, adapted from From<Vec<_>>

default implementation for binary array types, adapted from From<Vec<_>>

convert a slice of byte slices into a binary array (without nulls)

implementation details: here the Self::from_vec can be called but not without another copy

Implementors§