match_each_decimal_value

Macro match_each_decimal_value 

Source
macro_rules! match_each_decimal_value {
    ($decimal_value:expr, | $ident:ident | $body:block) => { ... };
}
Expand description

Matches over each decimal value variant, binding the inner value to a variable.

§Example

match_each_decimal_value!(value, |v| {
    println!("Value: {}", v);
});