carry

Macro carry 

Source
macro_rules! carry {
    (@most_once $value:expr, $min:literal.. $max:expr) => { ... };
    (@most_twice $value:expr, $min:literal.. $max:expr) => { ... };
    (@most_thrice $value:expr, $min:literal.. $max:expr) => { ... };
}
Expand description

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.