Struct arrow_array::array::NativeAdapter
source · pub struct NativeAdapter<T: ArrowPrimitiveType> {
pub native: Option<T::Native>,
}
Expand description
An optional primitive value
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>
Corresponding Rust native type if available
Trait Implementations§
source§impl<T: Debug + ArrowPrimitiveType> Debug for NativeAdapter<T>where
T::Native: Debug,
impl<T: Debug + ArrowPrimitiveType> Debug for NativeAdapter<T>where T::Native: Debug,
source§impl<T: ArrowPrimitiveType> From<&Option<<T as ArrowPrimitiveType>::Native>> for NativeAdapter<T>
impl<T: ArrowPrimitiveType> From<&Option<<T as ArrowPrimitiveType>::Native>> for NativeAdapter<T>
source§impl<T: ArrowPrimitiveType> From<Option<<T as ArrowPrimitiveType>::Native>> for NativeAdapter<T>
impl<T: ArrowPrimitiveType> From<Option<<T as ArrowPrimitiveType>::Native>> for NativeAdapter<T>
source§impl From<f16> for NativeAdapter<Float16Type>
impl From<f16> for NativeAdapter<Float16Type>
source§impl From<f32> for NativeAdapter<Float32Type>
impl From<f32> for NativeAdapter<Float32Type>
source§impl From<f64> for NativeAdapter<Float64Type>
impl From<f64> for NativeAdapter<Float64Type>
source§impl From<i128> for NativeAdapter<Decimal128Type>
impl From<i128> for NativeAdapter<Decimal128Type>
source§impl From<i256> for NativeAdapter<Decimal256Type>
impl From<i256> for NativeAdapter<Decimal256Type>
source§impl From<u16> for NativeAdapter<UInt16Type>
impl From<u16> for NativeAdapter<UInt16Type>
source§impl From<u32> for NativeAdapter<UInt32Type>
impl From<u32> for NativeAdapter<UInt32Type>
source§impl 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more