pub trait CheckedNeg {
type Output;
// Required method
fn checked_neg(self) -> Option<Self::Output>;
}
Expand description
Negates a number, returning None
if the result is not representable.
This is a wrapper over the checked_neg
functions in the standard library, for
example this one.
This is a wrapper over the checked_neg
functions in the standard library, for
example this one.
This is a wrapper over the checked_neg
functions in the standard library, for
example this one.
This is a wrapper over the checked_neg
functions in the standard library, for
example this one.
This is a wrapper over the checked_neg
functions in the standard library, for
example this one.
This is a wrapper over the checked_neg
functions in the standard library, for
example this one.
This is a wrapper over the checked_neg
functions in the standard library, for
example this one.
This is a wrapper over the checked_neg
functions in the standard library, for
example this one.
This is a wrapper over the checked_neg
functions in the standard library, for
example this one.
This is a wrapper over the checked_neg
functions in the standard library, for
example this one.
This is a wrapper over the checked_neg
functions in the standard library, for
example this one.
This is a wrapper over the checked_neg
functions in the standard library, for
example this one.