OxL Справочник OxL
РусскийEnglish

type usize

impl usize

С версии. 1.0.0-beta

Методы

checked_add(o: usize) -> usize?
Checked addition
checked_sub(o: usize) -> usize?
Checked subtraction
checked_mul(o: usize) -> usize?
Checked multiplication
checked_div(o: usize) -> usize?
Checked division (truncating toward zero)
checked_rem(o: usize) -> usize?
Checked remainder
wrapping_add(o: usize) -> usize
Addition that wraps around at the bounds of the type (two's complement) instead of panicking.
wrapping_sub(o: usize) -> usize
Subtraction that wraps around at the bounds of the type instead of panicking.
wrapping_mul(o: usize) -> usize
Multiplication that wraps around at the bounds of the type instead of panicking.
saturating_add(o: usize) -> usize
Addition that stops at the nearest bound of the type instead of panicking.
saturating_sub(o: usize) -> usize
Subtraction that stops at the nearest bound of the type instead of panicking.
saturating_mul(o: usize) -> usize
Multiplication that stops at the nearest bound of the type instead of panicking.
wrap() -> U
x.wrap<U>(): converts to the numeric type U; an integer that does not fit wraps around (keeps the low bits), a float is truncated toward zero (§3.1).
try() -> U | OutOfRange
x.try<U>(): checked conversion to the numeric type U (§3.1).
min(o: usize) -> usize
The smaller of the two values.
max(o: usize) -> usize
The larger of the two values.
clamp(lo: usize, hi: usize) -> usize
lo when the value is below it, hi when it is above, the value itself otherwise.
pow(e: u32) -> usize
Power by repeated squaring; panics on overflow like *.
toString() -> str
The decimal text of the value (what interpolation {x} shows).

Определено в: std/core/numbers.oxl:3303

См. также