Expand description
Collection of procedural macros for str and bytestr operations.
- generate const u8 array from str or bytestr
- repeat str or bytestr
- get length of str or bytestr
- generate byte slice from str or bytestr
Macros have 0 variant which terminates str or bytestr literal with \0
Macrosยง
- Procedural macro
proc_strarray::str_array!creates const u8 array from str or byte str literal. - Procedural macro
proc_strarray::str_array0!creates zero terminated const u8 array from str or byte str literal. - Convert string and bytestring literals to byte slice.
- Convert string and byte string literals to zero terminated byte slice.
- Procedural macro
proc_strarray::str_len!returns length of str or byte str literal. - Procedural macro
proc_strarray::str_len0!returns length of zero terminated str or byte str literal. - Procedural macro
proc_strarray::str_repeat!repeats str or byte str literal n times. - Procedural macro
proc_strarray::str_repeat0!repeats str or bytestr literal n times and adds zero termination.