Expand description
Exint - Exotic Integer Types
Notable Differences from primitive integer types
-
int<N>anduint<N>have an alignment of1. -
Some implementations of
FromandTryFromare blocked by:- orphan rule
- requiring support for
generic_const_exprsormin_specialization
-
Overloadable operators require a nightly compiler to be used in
const-fns -
Literals must be constructed with the macros from
exint-macro(eg.uint!).
Modules§
- primitive
- Integer type-aliases.
Macros§
- uint
- Create a generic integer from a literal expression.
- uint_be
- Similar to
uint!but always generates code in big-endian format. - uint_le
- Similar to
uint!but always generates code in little-endian format. - uint_
strict - Similar to
uint!but don’t convert the built-in integer types (eg.u8,u32,i64). - uint_
strict_ be - Similar to
uint_strict!but always generates code in big-endian format. - uint_
strict_ le - Similar to
uint_strict!but always generates code in little-endian format.
Structs§
- Parse
IntError - An error which can be returned when parsing an integer.
- Saturating
- Provides intentionally-saturating arithmetic on
T. - TryFrom
Char Error - The error type returned when a checked char conversion fails.
- TryFrom
IntError - The error type returned when a checked integral type conversion fails.
- Wrapping
- Provides intentionally-wrapped arithmetic on
T. - int
- The generic signed integer type.
- uint
- The generic unsigned integer type.
Enums§
- IntError
Kind - Enum to store the various types of errors that can cause parsing an integer to fail.