Macro defmt::intern

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

Creates an interned string (Str) from a string literal.

This must be called on a string literal, and will allocate the literal in the object file. At runtime, only a small string index is required to refer to the string, represented as the Str type.

§Example

let interned = defmt::intern!("long string literal taking up little space");