ClampedSub

Trait ClampedSub 

Source
pub trait ClampedSub {
    // Required method
    fn clamped_sub(&self, rhs: &Self) -> Self;
}
Expand description

Subtraction over a numerical type where the type’s minimum is returned if underflow would occur.

Required Methods§

Source

fn clamped_sub(&self, rhs: &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§