Skip to main content

SubChecked

Trait SubChecked 

Source
pub trait SubChecked<Rhs = Self, Output = Option<Self>> {
    // Required method
    fn sub_checked(self, rhs: impl Borrow<Rhs>) -> Output
       where Self: Sized;
}

Required Methods§

Source

fn sub_checked(self, rhs: impl Borrow<Rhs>) -> Output
where Self: Sized,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§