Struct arrow::array::NativeAdapter
source · pub struct NativeAdapter<T>where
T: ArrowPrimitiveType,{
pub native: Option<<T as ArrowPrimitiveType>::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 as ArrowPrimitiveType>::Native>
Corresponding Rust native type if available
Trait Implementations§
source§impl<T> Debug for NativeAdapter<T>
impl<T> Debug for NativeAdapter<T>
source§impl<T> From<&Option<<T as ArrowPrimitiveType>::Native>> for NativeAdapter<T>where
T: ArrowPrimitiveType,
impl<T> From<&Option<<T as ArrowPrimitiveType>::Native>> for NativeAdapter<T>where
T: ArrowPrimitiveType,
source§fn from(value: &Option<<T as ArrowPrimitiveType>::Native>) -> NativeAdapter<T>
fn from(value: &Option<<T as ArrowPrimitiveType>::Native>) -> NativeAdapter<T>
Converts to this type from the input type.
source§impl<T> From<Option<<T as ArrowPrimitiveType>::Native>> for NativeAdapter<T>where
T: ArrowPrimitiveType,
impl<T> From<Option<<T as ArrowPrimitiveType>::Native>> for NativeAdapter<T>where
T: ArrowPrimitiveType,
source§fn from(value: Option<<T as ArrowPrimitiveType>::Native>) -> NativeAdapter<T>
fn from(value: Option<<T as ArrowPrimitiveType>::Native>) -> NativeAdapter<T>
Converts to this type from the input type.
source§impl From<f16> for NativeAdapter<Float16Type>
impl From<f16> for NativeAdapter<Float16Type>
source§fn from(value: f16) -> NativeAdapter<Float16Type>
fn from(value: f16) -> NativeAdapter<Float16Type>
Converts to this type from the input type.
source§impl From<f32> for NativeAdapter<Float32Type>
impl From<f32> for NativeAdapter<Float32Type>
source§fn from(value: f32) -> NativeAdapter<Float32Type>
fn from(value: f32) -> NativeAdapter<Float32Type>
Converts to this type from the input type.
source§impl From<f64> for NativeAdapter<Float64Type>
impl From<f64> for NativeAdapter<Float64Type>
source§fn from(value: f64) -> NativeAdapter<Float64Type>
fn from(value: f64) -> NativeAdapter<Float64Type>
Converts to this type from the input type.
source§impl From<i128> for NativeAdapter<Decimal128Type>
impl From<i128> for NativeAdapter<Decimal128Type>
source§fn from(value: i128) -> NativeAdapter<Decimal128Type>
fn from(value: i128) -> NativeAdapter<Decimal128Type>
Converts to this type from the input type.
source§impl From<i256> for NativeAdapter<Decimal256Type>
impl From<i256> for NativeAdapter<Decimal256Type>
source§fn from(value: i256) -> NativeAdapter<Decimal256Type>
fn from(value: i256) -> NativeAdapter<Decimal256Type>
Converts to this type from the input type.
source§impl From<u16> for NativeAdapter<UInt16Type>
impl From<u16> for NativeAdapter<UInt16Type>
source§fn from(value: u16) -> NativeAdapter<UInt16Type>
fn from(value: u16) -> NativeAdapter<UInt16Type>
Converts to this type from the input type.
source§impl From<u32> for NativeAdapter<UInt32Type>
impl From<u32> for NativeAdapter<UInt32Type>
source§fn from(value: u32) -> NativeAdapter<UInt32Type>
fn from(value: u32) -> NativeAdapter<UInt32Type>
Converts to this type from the input type.
source§impl From<u64> for NativeAdapter<UInt64Type>
impl From<u64> for NativeAdapter<UInt64Type>
source§fn from(value: u64) -> NativeAdapter<UInt64Type>
fn from(value: u64) -> NativeAdapter<UInt64Type>
Converts to this type from the input type.
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