Trait arrow_cast::parse::Parser

source ·
pub trait Parser: ArrowPrimitiveType {
    // Required method
    fn parse(string: &str) -> Option<Self::Native>;

    // Provided method
    fn parse_formatted(string: &str, _format: &str) -> Option<Self::Native> { ... }
}
Expand description

Specialized parsing implementations used by csv and json reader

Required Methods§

source

fn parse(string: &str) -> Option<Self::Native>

Provided Methods§

source

fn parse_formatted(string: &str, _format: &str) -> Option<Self::Native>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Parser for Date32Type

source§

fn parse(string: &str) -> Option<i32>

source§

fn parse_formatted(string: &str, format: &str) -> Option<i32>

source§

impl Parser for Date64Type

source§

fn parse(string: &str) -> Option<i64>

source§

fn parse_formatted(string: &str, format: &str) -> Option<i64>

source§

impl Parser for Float16Type

source§

fn parse(string: &str) -> Option<f16>

source§

impl Parser for Float32Type

source§

fn parse(string: &str) -> Option<f32>

source§

impl Parser for Float64Type

source§

fn parse(string: &str) -> Option<f64>

source§

impl Parser for Int8Type

source§

fn parse(string: &str) -> Option<Self::Native>

source§

impl Parser for Int16Type

source§

fn parse(string: &str) -> Option<Self::Native>

source§

impl Parser for Int32Type

source§

fn parse(string: &str) -> Option<Self::Native>

source§

impl Parser for Int64Type

source§

fn parse(string: &str) -> Option<Self::Native>

source§

impl Parser for Time32MillisecondType

source§

fn parse(string: &str) -> Option<Self::Native>

source§

fn parse_formatted(string: &str, format: &str) -> Option<Self::Native>

source§

impl Parser for Time32SecondType

source§

fn parse(string: &str) -> Option<Self::Native>

source§

fn parse_formatted(string: &str, format: &str) -> Option<Self::Native>

source§

impl Parser for Time64MicrosecondType

source§

fn parse(string: &str) -> Option<Self::Native>

source§

fn parse_formatted(string: &str, format: &str) -> Option<Self::Native>

source§

impl Parser for Time64NanosecondType

source§

fn parse(string: &str) -> Option<Self::Native>

source§

fn parse_formatted(string: &str, format: &str) -> Option<Self::Native>

source§

impl Parser for TimestampMicrosecondType

source§

fn parse(string: &str) -> Option<i64>

source§

impl Parser for TimestampMillisecondType

source§

fn parse(string: &str) -> Option<i64>

source§

impl Parser for TimestampNanosecondType

source§

fn parse(string: &str) -> Option<i64>

source§

impl Parser for TimestampSecondType

source§

fn parse(string: &str) -> Option<i64>

source§

impl Parser for UInt8Type

source§

fn parse(string: &str) -> Option<Self::Native>

source§

impl Parser for UInt16Type

source§

fn parse(string: &str) -> Option<Self::Native>

source§

impl Parser for UInt32Type

source§

fn parse(string: &str) -> Option<Self::Native>

source§

impl Parser for UInt64Type

source§

fn parse(string: &str) -> Option<Self::Native>

Implementors§