Expand description
Macros for use within the library. They are not publicly available.
Macrosยง
- bug ๐
formattingorparsing unreachable!(), but better.- carry ๐
- Similar to
overflowing_add, but returning the number of times that it overflowed. Contained to a certain range and only overflows a maximum number of times. - cascade ๐
- Cascade an out-of-bounds value.
- const_
try ๐ - Try to unwrap an expression, returning if not possible.
- const_
try_ ๐opt - Try to unwrap an expression, returning if not possible.
- div_
floor ๐ - Division of integers, rounding the resulting value towards negative infinity.
- ensure_
ranged ๐ - Constructs a ranged integer, returning a
ComponentRangeerror if the value is out of range. - try_
likely_ ๐ok formattingorparsing - Try to unwrap an expression, returning if not possible.