trait DateOp: ArrowTemporalType {
// Required methods
fn add_year_month(timestamp: Self::Native, delta: i32) -> Self::Native;
fn add_day_time(
timestamp: Self::Native,
delta: IntervalDayTime,
) -> Self::Native;
fn add_month_day_nano(
timestamp: Self::Native,
delta: IntervalMonthDayNano,
) -> Self::Native;
fn sub_year_month(timestamp: Self::Native, delta: i32) -> Self::Native;
fn sub_day_time(
timestamp: Self::Native,
delta: IntervalDayTime,
) -> Self::Native;
fn sub_month_day_nano(
timestamp: Self::Native,
delta: IntervalMonthDayNano,
) -> Self::Native;
}
Expand description
Arithmetic trait for date arrays
Note: these should be fallible (#4456)
Required Methods§
fn add_year_month(timestamp: Self::Native, delta: i32) -> Self::Native
fn add_day_time(timestamp: Self::Native, delta: IntervalDayTime) -> Self::Native
fn add_month_day_nano( timestamp: Self::Native, delta: IntervalMonthDayNano, ) -> Self::Native
fn sub_year_month(timestamp: Self::Native, delta: i32) -> Self::Native
fn sub_day_time(timestamp: Self::Native, delta: IntervalDayTime) -> Self::Native
fn sub_month_day_nano( timestamp: Self::Native, delta: IntervalMonthDayNano, ) -> Self::Native
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.