Macro aoko::lm

source · []
macro_rules! lm {
    ($($a:ident $(:$t:ty)? = $b:expr);* $(;)?) => { ... };
}
Expand description

Abbr. of let mut

Examples

use aoko::lm;
 
lm!(foo = 233; bar: u16 = 1024;);
foo = 666; bar = 2048;
assert_eq!((666, 2048), (foo, bar));