Macro serde_json_lodash::x_add_x
source · [−]macro_rules! x_add_x {
() => { ... };
($a:expr $(,)*) => { ... };
($a:expr, $b:expr $(,)*) => { ... };
($a:expr, $b:expr, $($rest:tt)*) => { ... };
}
Expand description
Based on x_add_x()
Examples:
#[macro_use] extern crate serde_json_lodash;
use serde_json::Number;
assert_eq!(
x_add_x!(Number::from(6), Number::from(4)),
Number::from(10)
);
More examples: