Skip to main content

CheckedSub

Trait CheckedSub 

Source
pub trait CheckedSub: Sized {
    // Required method
    fn checked_sub(&self, other: &Self) -> Option<Self>;
}

Required Methods§

Source

fn checked_sub(&self, other: &Self) -> Option<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§