struct usize_t
@lang(usize)
struct usize_t {}Expand
Struct that implements functions for usize
Functions§
fn bit_width(self: usize) -> u32§fn bits() -> u32§fn count_ones(self: usize) -> u32§fn count_zeros(self: usize) -> u32§fn leading_ones(self: usize) -> u32§fn leading_zeros(self: usize) -> u32§fn max() -> usize§fn min() -> usize§fn next_power_of_two(self: usize) -> usize§fn print(self: usize)§Expand
Prints the number to stdout
fn println(self: usize)§Expand
Prints the number as well as a newline to stdout
fn reverse_bits(self: usize) -> usize§fn rotate_left(self: usize, amount: u32) -> usize§fn rotate_right(self: usize, amount: u32) -> usize§fn swap_bytes(self: usize) -> usize§fn trailing_ones(self: usize) -> u32§fn trailing_zeros(self: usize) -> u32§