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