Module std::u16
- Function bitwise_not
- Function max
- Function min
- Function diff
- Function divide_and_round_up
- Function pow
- Function sqrt
- Function try_as_u8
- Function to_string
- Macro function max_value
- Macro function range_do
- Macro function range_do_eq
- Macro function do
- Macro function do_eq
use std::ascii;
use std::option;
use std::string;
use std::vector;
Function bitwise_not
Returns the bitwise not of the value. Each bit that is 1 becomes 0. Each bit that is 0 becomes 1.
public fun bitwise_not(x: u16): u16
Click to open
Implementation
public fun bitwise_not(x: u16): u16 {
x ^ max_value!()
}