IntervalToDurationParts

Trait IntervalToDurationParts 

Source
trait IntervalToDurationParts: ArrowPrimitiveType {
    // Required method
    fn duration_parts(native: Self::Native) -> Result<DurationParts, ArrowError>;
}
Expand description

Trait mapping an Arrow interval native value to Avro duration (months, days, millis).

Required Methods§

Source

fn duration_parts(native: Self::Native) -> Result<DurationParts, ArrowError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl IntervalToDurationParts for IntervalDayTimeType

Source§

fn duration_parts(native: Self::Native) -> Result<DurationParts, ArrowError>

Source§

impl IntervalToDurationParts for IntervalMonthDayNanoType

Source§

fn duration_parts(native: Self::Native) -> Result<DurationParts, ArrowError>

Source§

impl IntervalToDurationParts for IntervalYearMonthType

Source§

fn duration_parts(native: Self::Native) -> Result<DurationParts, ArrowError>

Implementors§