pub trait NotAssign {
// Required method
fn not_assign(&mut self);
}
Expand description
Replaces a number with its bitwise negation.
Replaces a bool
by its opposite.
$b \gets \lnot b$.
§Worst-case complexity
Constant time and additional memory.
§Examples
use malachite_base::num::logic::traits::NotAssign;
let mut b = false;
b.not_assign();
assert_eq!(b, true);
let mut b = true;
b.not_assign();
assert_eq!(b, false);
Replaces a number with its bitwise negation.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Replaces a number with its bitwise negation.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Replaces a number with its bitwise negation.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Replaces a number with its bitwise negation.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Replaces a number with its bitwise negation.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Replaces a number with its bitwise negation.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Replaces a number with its bitwise negation.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Replaces a number with its bitwise negation.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Replaces a number with its bitwise negation.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Replaces a number with its bitwise negation.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Replaces a number with its bitwise negation.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
Replaces a number with its bitwise negation.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.