Crate const_str_proc_macro[][src]

const-str proc macros

Macros

as_bytes

Converts a string literal to a byte string literal

from_utf8

Converts a byte string literal to a string literal

len

Returns the length of the string literal

replace

Replaces all matches of a pattern with another string literal.

to_char_array

Converts a string literal into an array of its characters.

to_lowercase

Returns the lowercase equivalent of this string literal, as a new string literal.

to_uppercase

Returns the uppercase equivalent of this string literal, as a new string literal.