Skip to main content
u16
core
1.98.0
(88d9e12ae 2026-08-18)
u16
Associated Constants
BITS
MAX
MIN
Associated Functions
from_be
from_le
from_be_bytes
from_le_bytes
from_ne_bytes
min_value
max_value
from_str_radix
from_ascii
from_ascii_radix
Methods
abs_diff
bit_width
borrowing_sub
carrying_add
carrying_carryless_mul
carrying_mul
carrying_mul_add
carryless_mul
cast_signed
checked_add
checked_add_signed
checked_cast
checked_cast_signed
checked_div
checked_div_euclid
checked_div_exact
checked_ilog
checked_ilog2
checked_ilog10
checked_mul
checked_neg
checked_next_multiple_of
checked_next_power_of_two
checked_pow
checked_rem
checked_rem_euclid
checked_shl
checked_shr
checked_signed_diff
checked_sub
checked_sub_signed
checked_truncate
count_ones
count_zeros
deposit_bits
div_ceil
div_euclid
div_exact
div_floor
extract_bits
format_into
funnel_shl
funnel_shr
highest_one
ilog
ilog2
ilog10
is_multiple_of
is_power_of_two
is_utf16_surrogate
isolate_highest_one
isolate_lowest_one
isqrt
leading_ones
leading_zeros
lowest_one
midpoint
next_multiple_of
next_power_of_two
overflowing_add
overflowing_add_signed
overflowing_div
overflowing_div_euclid
overflowing_mul
overflowing_neg
overflowing_pow
overflowing_rem
overflowing_rem_euclid
overflowing_shl
overflowing_shr
overflowing_sub
overflowing_sub_signed
pow
rem_euclid
reverse_bits
rotate_left
rotate_right
saturating_add
saturating_add_signed
saturating_cast
saturating_cast_signed
saturating_div
saturating_mul
saturating_pow
saturating_sub
saturating_sub_signed
saturating_truncate
shl_exact
shr_exact
strict_add
strict_add_signed
strict_cast
strict_cast_signed
strict_div
strict_div_euclid
strict_mul
strict_neg
strict_pow
strict_rem
strict_rem_euclid
strict_shl
strict_shr
strict_sub
strict_sub_signed
swap_bytes
to_be
to_be_bytes
to_le
to_le_bytes
to_ne_bytes
trailing_ones
trailing_zeros
truncate
unbounded_shl
unbounded_shr
unchecked_add
unchecked_cast
unchecked_disjoint_bitor
unchecked_div_exact
unchecked_funnel_shl
unchecked_funnel_shr
unchecked_mul
unchecked_shl
unchecked_shl_exact
unchecked_shr
unchecked_shr_exact
unchecked_sub
widen
widening_carryless_mul
widening_mul
wrapping_add
wrapping_add_signed
wrapping_cast
wrapping_div
wrapping_div_euclid
wrapping_mul
wrapping_neg
wrapping_next_power_of_two
wrapping_pow
wrapping_rem
wrapping_rem_euclid
wrapping_shl
wrapping_shr
wrapping_sub
wrapping_sub_signed
Trait Implementations
Add
Add<&u16>
Add<&u16>
Add<u16>
AddAssign
AddAssign<&u16>
AddAssign<&u16>
AddAssign<&u16>
AddAssign<u16>
AddAssign<u16>
AtomicPrimitive
Binary
BitAnd
BitAnd<&u16>
BitAnd<&u16>
BitAnd<u16>
BitAndAssign
BitAndAssign<&u16>
BitAndAssign<&u16>
BitAndAssign<&u16>
BitAndAssign<u16>
BitAndAssign<u16>
BitOr
BitOr<&u16>
BitOr<&u16>
BitOr<u16>
BitOrAssign
BitOrAssign<&u16>
BitOrAssign<&u16>
BitOrAssign<&u16>
BitOrAssign<u16>
BitOrAssign<u16>
BitXor
BitXor<&u16>
BitXor<&u16>
BitXor<u16>
BitXorAssign
BitXorAssign<&u16>
BitXorAssign<&u16>
BitXorAssign<&u16>
BitXorAssign<u16>
BitXorAssign<u16>
BoundedCastFromInt<i8>
BoundedCastFromInt<i16>
BoundedCastFromInt<i32>
BoundedCastFromInt<i64>
BoundedCastFromInt<i128>
BoundedCastFromInt<isize>
BoundedCastFromInt<u8>
BoundedCastFromInt<u16>
BoundedCastFromInt<u16>
BoundedCastFromInt<u16>
BoundedCastFromInt<u16>
BoundedCastFromInt<u16>
BoundedCastFromInt<u16>
BoundedCastFromInt<u16>
BoundedCastFromInt<u16>
BoundedCastFromInt<u16>
BoundedCastFromInt<u16>
BoundedCastFromInt<u16>
BoundedCastFromInt<u16>
BoundedCastFromInt<u32>
BoundedCastFromInt<u64>
BoundedCastFromInt<u128>
BoundedCastFromInt<usize>
CarryingMulAdd
CarrylessMul
CheckedCastFromInt<i8>
CheckedCastFromInt<i16>
CheckedCastFromInt<i32>
CheckedCastFromInt<i64>
CheckedCastFromInt<i128>
CheckedCastFromInt<isize>
CheckedCastFromInt<u8>
CheckedCastFromInt<u16>
CheckedCastFromInt<u16>
CheckedCastFromInt<u16>
CheckedCastFromInt<u16>
CheckedCastFromInt<u16>
CheckedCastFromInt<u16>
CheckedCastFromInt<u16>
CheckedCastFromInt<u16>
CheckedCastFromInt<u16>
CheckedCastFromInt<u16>
CheckedCastFromInt<u16>
CheckedCastFromInt<u16>
CheckedCastFromInt<u32>
CheckedCastFromInt<u64>
CheckedCastFromInt<u128>
CheckedCastFromInt<usize>
Clone
ConstParamTy_
Copy
Debug
Default
DisjointBitOr
Display
Distribution<u16>
Div
Div<&u16>
Div<&u16>
Div<NonZero<u16>>
Div<u16>
DivAssign
DivAssign<&u16>
DivAssign<&u16>
DivAssign<&u16>
DivAssign<NonZero<u16>>
DivAssign<u16>
DivAssign<u16>
Eq
FloatToInt<u16>
FloatToInt<u16>
FloatToInt<u16>
FloatToInt<u16>
From<AsciiChar>
From<bool>
From<u8>
From<u16>
From<u16>
From<u16>
From<u16>
From<u16>
From<u16>
From<u16>
From<u16>
From<u16>
From<u16>
From<u16>
FromStr
FunnelShift
Hash
LowerExp
LowerHex
Mul
Mul<&u16>
Mul<&u16>
Mul<u16>
MulAssign
MulAssign<&u16>
MulAssign<&u16>
MulAssign<&u16>
MulAssign<u16>
MulAssign<u16>
Not
Not
NumBufferTrait
Octal
Ord
PartialEq
PartialOrd
Product
Product<&'a u16>
RangePattern
Rem
Rem<&u16>
Rem<&u16>
Rem<NonZero<u16>>
Rem<u16>
RemAssign
RemAssign<&u16>
RemAssign<&u16>
RemAssign<&u16>
RemAssign<NonZero<u16>>
RemAssign<u16>
RemAssign<u16>
Shl
Shl<&i8>
Shl<&i8>
Shl<&i16>
Shl<&i16>
Shl<&i32>
Shl<&i32>
Shl<&i64>
Shl<&i64>
Shl<&i128>
Shl<&i128>
Shl<&isize>
Shl<&isize>
Shl<&u8>
Shl<&u8>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u16>
Shl<&u32>
Shl<&u32>
Shl<&u64>
Shl<&u64>
Shl<&u128>
Shl<&u128>
Shl<&usize>
Shl<&usize>
Shl<i8>
Shl<i8>
Shl<i16>
Shl<i16>
Shl<i32>
Shl<i32>
Shl<i64>
Shl<i64>
Shl<i128>
Shl<i128>
Shl<isize>
Shl<isize>
Shl<u8>
Shl<u8>
Shl<u16>
Shl<u16>
Shl<u16>
Shl<u16>
Shl<u16>
Shl<u16>
Shl<u16>
Shl<u16>
Shl<u16>
Shl<u16>
Shl<u16>