[−][src]Macro macros::init_strn
init_strn!() { /* proc-macro */ }
Initialise a null-terminated bytestring Strn
that's suitable for passing to Mynewt APIs
init_strn!("network")
expands to Strn{ rep: ByteStr(b"network\0") }
Used like this:
static STATIC_STRN: Strn = init_strn!("network"); let local_strn = init_strn!("network");