Expand description
Wrapper types and extensions for Rust’s built-in integer primitives.
This module is split into the signed
and unsigned
submodules. These may either be merged or feature-gated in the future. Merging
them would make the crate itself a bit more convenient to use. Feature-gating the
integers, on the other hand, could be used to disable unnecessary codegen.
Structs§
- I8
- A signed, 8-bit integer type with explicit alignment requirements
- I16
- A signed, 16-bit integer type with explicit alignment requirements
- I32
- A signed, 32-bit integer type with explicit alignment requirements
- I64
- A signed, 64-bit integer type with explicit alignment requirements
- I128
- A signed, 128-bit integer type with explicit alignment requirements
- Isize
- A signed, pointer-sized integer type with explicit alignment requirements
- U8
- An unsigned, 8-bit integer type with explicit alignment requirements
- U16
- An unsigned, 16-bit integer type with explicit alignment requirements
- U32
- An unsigned, 32-bit integer type with explicit alignment requirements
- U64
- An unsigned, 64-bit integer type with explicit alignment requirements
- U128
- An unsigned, 128-bit integer type with explicit alignment requirements
- Usize
- An unsigned, platform-dependent integer type with explicit alignment requirements
Traits§
- Integer
- A trait defining integer types with explicit or implicit byte order serialization (endianness) that can be converted to and from slices of bytes.