SaturatingSub

Trait SaturatingSub 

Source
pub trait SaturatingSub {
    // Required method
    fn saturating_sub(self, other: Self) -> Self;
}
Expand description

Saturating subtraction for time and duration types.

Required Methods§

Source

fn saturating_sub(self, other: Self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§