Module time::internal_macros

source ·
Expand description

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

Macros§

  • Helper macro for easily implementing OpAssign.
  • bug 🔒 formatting or parsing
    unreachable!(), but better.
  • cascade 🔒
    Cascade an out-of-bounds value.
  • const_try 🔒
    Try to unwrap an expression, returning if not possible.
  • Try to unwrap an expression, returning if not possible.
  • div_floor 🔒
    Division of integers, rounding the resulting value towards negative infinity.
  • 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.
  • Implement AddAssign for the provided types.
  • Implement DivAssign for the provided types.
  • Implement MulAssign for the provided types.
  • Implement SubAssign for the provided types.