Title: Theory / Unimportant / CS / Programming / Rust / Library / usize
Tags: automatedNewLineAfterCommaSpace
On every note of this deck, unless a note says otherwise:
Page: https://doc.rust-lang.org/std/primitive.usize.html

Typ: usize
Meaning: The pointer-sized unsigned integer type.
Page: https://doc.rust-lang.org/std/primitive.usize.html

Constant: T::MIN
Meaning: The smallest value that can be represented by this integer type.
Page: https://doc.rust-lang.org/std/primitive.usize.html
Language: Rust
Context: T: usize

Constant: T::MAX
Meaning: The largest value that can be represented by this integer type
Page: https://doc.rust-lang.org/std/primitive.usize.html
Language: Rust
Context: T: usize

Constant: T::BITS
Meaning: The size of this integer type in bits.
Page: https://doc.rust-lang.org/std/primitive.usize.html
Language: Rust
Context: T: usize

Instruction: T::from_str_radix(
  number_str,
  base
)
Language: Rust
Context: T: usize
Returns: The integer represented by number_str in base

Instruction: n.count_zeroes()
Language: Rust
Context: n: usize
Returns: Number of zeroe in binary representation of n

Instruction: n.count_ones()
Language: Rust
Context: n: usize
Returns: Number of one in binary representation of n

Instruction: n.(leading|trailing)_(zero|one)s()
Language: Rust
Context: n: usize
Returns: Number of leading|trailing 0|1's in the binary representation of n

Instruction: n.rotate_left(r)
Language: Rust
Context: n: usize
Returns: n shifted left by r

Instruction: n.rotate_right(r)
Language: Rust
Context: n: usize
Returns: n shifted right by r

Instruction: n.swap_bytes()
Language: Rust
Context: n: usize
Returns: Reverses the byte order of the integer.

Instruction: n.reverse_bits()
Language: Rust
Context: n: usize
Returns: Reverses the order of bits in the integer.

Instruction: T::from_be(x)
Language: Rust
Context: n: usize
T: usize
Returns: x as big-endian converted to target's endianness

Instruction: T::from_le(x)
Language: Rust
Context: n: usize
T: usize
Returns: x as little-endian converted to target's endianness

Instruction: usize to do end
Language: Rust
Context: n: usize
T: usize
Returns: x as little-endian converted to target's endianness