Skip to main content

AddChecked

Trait AddChecked 

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

Required Methods§

Source

fn add_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§