Skip to main content

Module internal_macros

Module internal_macros 

Source
Expand description

Macros for use within the library. They are not publicly available.

Macrosยง

bug ๐Ÿ”’ formatting or parsing
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 ComponentRange error if the value is out of range.
try_likely_ok ๐Ÿ”’ formatting or parsing
Try to unwrap an expression, returning if not possible.