Trait timespan::Spanable

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

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

Implementors