rokdocs
v0.1

rok::core::num::ints

rok::core::num::ints: the integer primitives' methods and limits (stdlib 2.1.4): bit operations, byte order, and the checked_ / wrapping_ / saturating_ / overflowing_ families that spell out what plain + - * leave to the profile (2.3).

wrapping_add / _sub / _mul and the bit counts are intrinsics; the rest is built on them. One regular block per type.

The limits are MIN / MAX consts rather than 2.1.4's fn min() / fn max(), which would shadow Ord::min(self, rhs).

Implementations

impl i8

74 members →

impl i16

74 members →

impl i32

74 members →

impl i64

74 members →

impl isize

83 members →

impl usize

76 members →

impl u8

67 members →

impl u16

67 members →

impl u32

67 members →

impl u64

67 members →