Trait fpdec::CheckedAdd
source · [−]pub trait CheckedAdd<Rhs = Self> {
type Output;
fn checked_add(self, rhs: Rhs) -> Self::Output;
}
Expand description
Checked addition.
Computes self + rhs
.
Returns None
if the result can not be represented by the Output
type.
Required Associated Types
Required Methods
fn checked_add(self, rhs: Rhs) -> Self::Output
fn checked_add(self, rhs: Rhs) -> Self::Output
Returns Some(self + rhs)
or None
if the result can not be
represented by the Output
type.