macro_rules! to_char_array {
    ($s: expr) => { ... };
}
Expand description

Converts a string slice into an array of its characters.

§Examples

const CHARS: [char; 5] = const_str::to_char_array!("Hello");
assert_eq!(CHARS, ['H', 'e', 'l', 'l', 'o']);