[−][src]Macro macro_utils::tern_py
The same as tern_python
macro but shorter:
let y = 4; let x = tern_py! { { "it's even" } if (y & 1 == 0) else { "it's odd" } }; println!("{} is {}", y, x);
The same as tern_python
macro but shorter:
let y = 4; let x = tern_py! { { "it's even" } if (y & 1 == 0) else { "it's odd" } }; println!("{} is {}", y, x);