Expand description
Macros for use within the library. They are not publicly available.
Macrosยง
- __
impl_ ๐assign - Helper macro for easily implementing
OpAssign. - 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. - expect_
opt ๐ - Try to unwrap an expression, panicking if not possible.
- impl_
add_ ๐assign - Implement
AddAssignfor the provided types. - impl_
div_ ๐assign - Implement
DivAssignfor the provided types. - impl_
mul_ ๐assign - Implement
MulAssignfor the provided types. - impl_
sub_ ๐assign - Implement
SubAssignfor the provided types.