Macro place_macro::tail

source ·
tail!() { /* proc-macro */ }
Expand description

Expands to all but the first token

Examples

use place_macro::tail;

let n = tail!(-5);
assert_eq!(n, 5);

let n = tail!((5 + 3) - 5);
assert_eq!(n, -5);

// expands to nothing
tail!((-5));