Trait timespan::Spanable [] [src]

pub trait Spanable: Copy + Clone + Ord + PartialOrd + Add<Duration, Output = Self> + Sub<Duration, Output = Self> {
    fn signed_duration_since(self, _: Self) -> Duration;
}

Types that implement this trait can be used inside a Span.

Required Methods

This is a wrapper method to the signed_duration_since method from chrono.

Implementations on Foreign Types

impl<T: TimeZone> Spanable for Date<T> where
    <T as TimeZone>::Offset: Copy
[src]

[src]

impl<T: TimeZone> Spanable for ChronoDateTime<T> where
    <T as TimeZone>::Offset: Copy
[src]

[src]

impl Spanable for NaiveDate
[src]

[src]

impl Spanable for NaiveDateTime
[src]

[src]

impl Spanable for NaiveTime
[src]

[src]

Implementors