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>
impl<T: Debug + ArrowPrimitiveType> Debug 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<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> Freeze for NativeAdapter<T>
impl<T> RefUnwindSafe for NativeAdapter<T>
impl<T> Send for NativeAdapter<T>
impl<T> Sync for NativeAdapter<T>
impl<T> Unpin for NativeAdapter<T>
impl<T> UnwindSafe for NativeAdapter<T>
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