[][src]Trait timespan::Spanable

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

fn signed_duration_since(self, _: Self) -> Duration

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

Loading content...

Implementations on Foreign Types

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

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

impl Spanable for NaiveDate[src]

impl Spanable for NaiveDateTime[src]

impl Spanable for NaiveTime[src]

Loading content...

Implementors

Loading content...