type isize
impl isizeС версии. 1.0.0-beta
Методы
checked_add | (o: isize) -> isize?Checked addition |
checked_sub | (o: isize) -> isize?Checked subtraction |
checked_mul | (o: isize) -> isize?Checked multiplication |
checked_div | (o: isize) -> isize?Checked division (truncating toward zero) |
checked_rem | (o: isize) -> isize?Checked remainder |
wrapping_add | (o: isize) -> isizeAddition that wraps around at the bounds of the type (two's complement) instead of panicking. |
wrapping_sub | (o: isize) -> isizeSubtraction that wraps around at the bounds of the type instead of panicking. |
wrapping_mul | (o: isize) -> isizeMultiplication that wraps around at the bounds of the type instead of panicking. |
saturating_add | (o: isize) -> isizeAddition that stops at the nearest bound of the type instead of panicking. |
saturating_sub | (o: isize) -> isizeSubtraction that stops at the nearest bound of the type instead of panicking. |
saturating_mul | (o: isize) -> isizeMultiplication that stops at the nearest bound of the type instead of panicking. |
wrap | () -> Ux.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 | OutOfRangex.try<U>(): checked conversion to the numeric type U (§3.1). |
abs | () -> isizeThe absolute value. |
signum | () -> isize-1, 0 or 1 for a negative, zero or positive value. |
min | (o: isize) -> isizeThe smaller of the two values. |
max | (o: isize) -> isizeThe larger of the two values. |
clamp | (lo: isize, hi: isize) -> isizelo when the value is below it, hi when it is above, the value itself otherwise. |
pow | (e: u32) -> isizePower by repeated squaring; panics on overflow like *. |
toString | () -> strThe decimal text of the value (what interpolation {x} shows). |
Определено в: std/core/numbers.oxl:1377