Skip to content

Glossary: Algorithms Beyond the Basics in Rust

Binary / bit

Also written: binary, bit, bits

Binary writes numbers using only 0s and 1s, and each digit is a bit. From the right the bits are worth 1, 2, 4, 8 and so on, so `1101` is 13.

Where the book teaches it

Related terms

Bitmask / flagBit operatorsBit methods (count_ones, from_str_radix)