arrow_arith::numeric

Trait IntervalOp

Source
trait IntervalOp: ArrowPrimitiveType {
    // Required methods
    fn add(
        left: Self::Native,
        right: Self::Native,
    ) -> Result<Self::Native, ArrowError>;
    fn sub(
        left: Self::Native,
        right: Self::Native,
    ) -> Result<Self::Native, ArrowError>;
}
Expand description

Arithmetic trait for interval arrays

Required Methods§

Source

fn add( left: Self::Native, right: Self::Native, ) -> Result<Self::Native, ArrowError>

Source

fn sub( left: Self::Native, right: Self::Native, ) -> Result<Self::Native, 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 IntervalOp for IntervalDayTimeType

Source§

fn add( left: Self::Native, right: Self::Native, ) -> Result<Self::Native, ArrowError>

Source§

fn sub( left: Self::Native, right: Self::Native, ) -> Result<Self::Native, ArrowError>

Source§

impl IntervalOp for IntervalMonthDayNanoType

Source§

fn add( left: Self::Native, right: Self::Native, ) -> Result<Self::Native, ArrowError>

Source§

fn sub( left: Self::Native, right: Self::Native, ) -> Result<Self::Native, ArrowError>

Source§

impl IntervalOp for IntervalYearMonthType

Source§

fn add( left: Self::Native, right: Self::Native, ) -> Result<Self::Native, ArrowError>

Source§

fn sub( left: Self::Native, right: Self::Native, ) -> Result<Self::Native, ArrowError>

Implementors§