pub trait OverflowingNegAssign {
// Required method
fn overflowing_neg_assign(&mut self) -> bool;
}
Expand description
Negates a number in place.
Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred,
then the wrapped number is assigned.
Negates a number in place.
Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow
occurred, then the wrapped value is assigned.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Negates a number in place.
Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow
occurred, then the wrapped value is assigned.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Negates a number in place.
Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow
occurred, then the wrapped value is assigned.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Negates a number in place.
Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow
occurred, then the wrapped value is assigned.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Negates a number in place.
Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow
occurred, then the wrapped value is assigned.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Negates a number in place.
Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow
occurred, then the wrapped value is assigned.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Negates a number in place.
Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow
occurred, then the wrapped value is assigned.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Negates a number in place.
Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow
occurred, then the wrapped value is assigned.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Negates a number in place.
Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow
occurred, then the wrapped value is assigned.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Negates a number in place.
Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow
occurred, then the wrapped value is assigned.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Negates a number in place.
Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow
occurred, then the wrapped value is assigned.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Negates a number in place.
Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow
occurred, then the wrapped value is assigned.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.