math!() { /* proc-macro */ }Expand description
Lower math to method calls.
let [a, b, c] = [5i32, 6, 7];
assert_eq!(lower_macros::math! { a * *&b + -c }, a * *&b + -c);
// expands to
// a.mul((&b).deref()).add(c.neg())math!() { /* proc-macro */ }Lower math to method calls.
let [a, b, c] = [5i32, 6, 7];
assert_eq!(lower_macros::math! { a * *&b + -c }, a * *&b + -c);
// expands to
// a.mul((&b).deref()).add(c.neg())