match_each_dscalar

Macro match_each_dscalar 

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

Matches on all decimal type variants of DecimalScalar and executes the same code for each variant branch.

This macro eliminates repetitive match statements when implementing operations that need to work uniformly across all decimal type variants (D8, D16, D32, D64, D128, D256).

Works with both owned DecimalScalar and &DecimalScalar (the bound variable will be DScalar<D> or &DScalar<D> respectively due to Rust’s match ergonomics).