[go: up one dir, main page]

Macro untagged

Source
untagged!() { /* proc-macro */ }
Expand description

Removes all the color tags from the given string literal.

Accepts only one argument.

ยงExample
let s: &str = untagged!("A <g>normal</> word");
assert_eq!(s, "A normal word");