[−][src]Macro macro_utils::tern_c
You miss C-like ternary conditions? Why not having them in Rust then?
let y = 4; let x = tern_c! { (y & 1 == 0) ? { "even" } : { "odd" } }; println!("{} is {}", y, x);
You miss C-like ternary conditions? Why not having them in Rust then?
let y = 4; let x = tern_c! { (y & 1 == 0) ? { "even" } : { "odd" } }; println!("{} is {}", y, x);