pub fn abs_sub(&self, other: Self) -> Option<Duration> {
        self.0.partial_cmp(&other.0).map(|ordering| match ordering {
            Ordering::Less => other.0.duration_since(self.0),
            _ => self.0.duration_since(other.0),
        }).unwrap_or(None)
    }
/// Returns the absolute difference from another `EventInstant` to this one, as a `Duration`,
/// if they originate from the same time source.
Returns the absolute difference from another `EventInstant` to this one, as a `Duration`,
if they originate from the same time source.
Returns the absolute difference from another ` EventInstant ` to this one as a ` Duration ` if they originate from the same time source .
pub fn abs_sub(&self, other: Self) -> Option<Duration> {
        self.0.partial_cmp(&other.0).map(|ordering| match ordering {
            Ordering::Less => other.0.duration_since(self.0),
            _ => self.0.duration_since(other.0),
        }).unwrap_or(None)
    }
pub fn abs_sub ( & self , other : Self ) -> Option < Duration > { self . 0 . partial_cmp ( & other . 0 ) . map ( | ordering | match ordering { Ordering :: Less => other . 0 . duration_since ( self . 0 ) , _ => self . 0 . duration_since ( other . 0 ) , } ) . unwrap_or ( None ) }
Returns the absolute difference from another `EventInstant` to this one, as a `Duration`,
if they originate from the same time source.
Returns the absolute difference from another ` EventInstant ` to this one as a ` Duration ` if they originate from the same time source .
&self
other
Self
&self
other
Self