Struct arrow_array::array::NativeAdapter
source · pub struct NativeAdapter<T: ArrowPrimitiveType> {
pub native: Option<T::Native>,
}
Expand description
This struct is used as an adapter when creating PrimitiveArray
from an iterator.
FromIterator
for PrimitiveArray
takes an iterator where the elements can be into
this struct. So once implementing From
or Into
trait for a type, an iterator of
the type can be collected to PrimitiveArray
.
Fields
native: Option<T::Native>
Trait Implementations
sourceimpl<T: Debug + ArrowPrimitiveType> Debug for NativeAdapter<T>where
T::Native: Debug,
impl<T: Debug + ArrowPrimitiveType> Debug for NativeAdapter<T>where
T::Native: Debug,
sourceimpl<T: ArrowPrimitiveType> From<&Option<<T as ArrowPrimitiveType>::Native>> for NativeAdapter<T>
impl<T: ArrowPrimitiveType> From<&Option<<T as ArrowPrimitiveType>::Native>> for NativeAdapter<T>
sourcefn from(value: &Option<<T as ArrowPrimitiveType>::Native>) -> Self
fn from(value: &Option<<T as ArrowPrimitiveType>::Native>) -> Self
Converts to this type from the input type.
sourceimpl<T: ArrowPrimitiveType> From<Option<<T as ArrowPrimitiveType>::Native>> for NativeAdapter<T>
impl<T: ArrowPrimitiveType> From<Option<<T as ArrowPrimitiveType>::Native>> for NativeAdapter<T>
sourcefn from(value: Option<<T as ArrowPrimitiveType>::Native>) -> Self
fn from(value: Option<<T as ArrowPrimitiveType>::Native>) -> Self
Converts to this type from the input type.
sourceimpl From<f16> for NativeAdapter<Float16Type>
impl From<f16> for NativeAdapter<Float16Type>
sourceimpl From<f32> for NativeAdapter<Float32Type>
impl From<f32> for NativeAdapter<Float32Type>
sourceimpl From<f64> for NativeAdapter<Float64Type>
impl From<f64> for NativeAdapter<Float64Type>
sourceimpl From<i128> for NativeAdapter<Decimal128Type>
impl From<i128> for NativeAdapter<Decimal128Type>
sourceimpl From<i16> for NativeAdapter<Int16Type>
impl From<i16> for NativeAdapter<Int16Type>
sourceimpl From<i256> for NativeAdapter<Decimal256Type>
impl From<i256> for NativeAdapter<Decimal256Type>
sourceimpl From<i32> for NativeAdapter<Int32Type>
impl From<i32> for NativeAdapter<Int32Type>
sourceimpl From<i64> for NativeAdapter<Int64Type>
impl From<i64> for NativeAdapter<Int64Type>
sourceimpl From<i8> for NativeAdapter<Int8Type>
impl From<i8> for NativeAdapter<Int8Type>
sourceimpl From<u16> for NativeAdapter<UInt16Type>
impl From<u16> for NativeAdapter<UInt16Type>
sourceimpl From<u32> for NativeAdapter<UInt32Type>
impl From<u32> for NativeAdapter<UInt32Type>
sourceimpl From<u64> for NativeAdapter<UInt64Type>
impl From<u64> for NativeAdapter<UInt64Type>
Auto Trait Implementations
impl<T> RefUnwindSafe for NativeAdapter<T>where
<T as ArrowPrimitiveType>::Native: RefUnwindSafe,
impl<T> Send for NativeAdapter<T>
impl<T> Sync for NativeAdapter<T>
impl<T> Unpin for NativeAdapter<T>where
<T as ArrowPrimitiveType>::Native: Unpin,
impl<T> UnwindSafe for NativeAdapter<T>where
<T as ArrowPrimitiveType>::Native: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more