Module time::internal_macros
source ยท Expand description
Macros for use within the library. They are not publicly available.
Macrosยง
- __impl_assign ๐Helper macro for easily implementing
OpAssign
. - bug ๐
unreachable!()
, but better. - 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. - expect_opt ๐Try to unwrap an expression, panicking if not possible.
- impl_add_assign ๐Implement
AddAssign
for the provided types. - impl_div_assign ๐Implement
DivAssign
for the provided types. - impl_mul_assign ๐Implement
MulAssign
for the provided types. - impl_sub_assign ๐Implement
SubAssign
for the provided types.