Trait arrow::datatypes::ArrowNativeType[][src]

pub trait ArrowNativeType: Debug + Send + Sync + Copy + PartialOrd + FromStr + Default + JsonSerializable {
    fn from_usize(_: usize) -> Option<Self> { ... }
fn to_usize(&self) -> Option<usize> { ... }
fn to_isize(&self) -> Option<isize> { ... }
fn from_i32(_: i32) -> Option<Self> { ... }
fn from_i64(_: i64) -> Option<Self> { ... } }

Trait expressing a Rust type that has the same in-memory representation as Arrow. This includes i16, f32, but excludes bool (which in arrow is represented in bits). In little endian machines, types that implement ArrowNativeType can be memcopied to arrow buffers as is.

Provided methods

fn from_usize(_: usize) -> Option<Self>[src]

Convert native type from usize.

fn to_usize(&self) -> Option<usize>[src]

Convert native type to usize.

fn to_isize(&self) -> Option<isize>[src]

Convert native type to isize.

fn from_i32(_: i32) -> Option<Self>[src]

Convert native type from i32.

fn from_i64(_: i64) -> Option<Self>[src]

Convert native type from i64.

Loading content...

Implementations on Foreign Types

impl ArrowNativeType for i8[src]

impl ArrowNativeType for i16[src]

impl ArrowNativeType for i32[src]

fn from_i32(val: i32) -> Option<Self>[src]

Convert native type from i32.

impl ArrowNativeType for i64[src]

fn from_i64(val: i64) -> Option<Self>[src]

Convert native type from i64.

impl ArrowNativeType for u8[src]

impl ArrowNativeType for u16[src]

impl ArrowNativeType for u32[src]

impl ArrowNativeType for u64[src]

impl ArrowNativeType for f32[src]

impl ArrowNativeType for f64[src]

Loading content...

Implementors

Loading content...