Expand description
Collection of procedural macros for str operations.
- generate const u8 array from str
- repeat string
- get length of string
Macros have 0 variant which terminates str literal with \0
Macrosยง
- Procedural macro
proc_strarray::str_arraycreates const u8 array from str literal. - Procedural macro
proc_strarray::str_array0creates zero terminated const u8 array from str literal. - Procedural macro
proc_strarray::str_lenreturns length of str literal. - Procedural macro
proc_strarray::str_len0returns length of zero terminated str literal. - Procedural macro
proc_strarray::str_repeatrepeats string literal n times. - Procedural macro
proc_strarray::str_repeat0repeats string literal n times and adds zero termination.