pub trait AddDateTimeDiff: DateTimeParts {
type Output;
// Required method
fn add_date_time_diff(
self,
date_time_diff: &impl DateTimeDiff,
) -> Self::Output;
}Expand description
A trait for date-time types that can apply a DateTimeDiff.
Required Associated Types§
Required Methods§
fn add_date_time_diff(self, date_time_diff: &impl DateTimeDiff) -> Self::Output
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl AddDateTimeDiff for DateTime
Available on crate feature jiff only.
impl AddDateTimeDiff for DateTime
Available on crate feature
jiff only.Source§impl AddDateTimeDiff for NaiveDateTime
Available on crate feature chrono only.
impl AddDateTimeDiff for NaiveDateTime
Available on crate feature
chrono only.type Output = Option<NaiveDateTime>
fn add_date_time_diff(self, date_time_diff: &impl DateTimeDiff) -> Self::Output
Source§impl AddDateTimeDiff for OffsetDateTime
Available on crate feature time only.
impl AddDateTimeDiff for OffsetDateTime
Available on crate feature
time only.type Output = Option<OffsetDateTime>
fn add_date_time_diff(self, date_time_diff: &impl DateTimeDiff) -> Self::Output
Source§impl AddDateTimeDiff for PrimitiveDateTime
Available on crate feature time only.
impl AddDateTimeDiff for PrimitiveDateTime
Available on crate feature
time only.type Output = Option<PrimitiveDateTime>
fn add_date_time_diff(self, date_time_diff: &impl DateTimeDiff) -> Self::Output
Source§impl AddDateTimeDiff for UtcDateTime
Available on crate feature time only.
impl AddDateTimeDiff for UtcDateTime
Available on crate feature
time only.type Output = Option<UtcDateTime>
fn add_date_time_diff(self, date_time_diff: &impl DateTimeDiff) -> Self::Output
Source§impl AddDateTimeDiff for Zoned
Available on crate feature jiff only.
impl AddDateTimeDiff for Zoned
Available on crate feature
jiff only.Source§impl<Tz> AddDateTimeDiff for DateTime<Tz>
Available on crate feature chrono only.
impl<Tz> AddDateTimeDiff for DateTime<Tz>
Available on crate feature
chrono only.