hopr_lib

Trait SaturatingSub

Source
pub trait SaturatingSub {
    // Required method
    fn saturating_sub(&self, earlier: SystemTime) -> Duration;
}
Expand description

A trait that adds extension method to perform saturated substractions on SystemTime instances.

Required Methods§

Source

fn saturating_sub(&self, earlier: SystemTime) -> Duration

Performs saturated substraction on SystemTime instances.

Implementations on Foreign Types§

Source§

impl SaturatingSub for SystemTime

Implementors§