Macro widestring::utf32str[][src]

macro_rules! utf32str {
    ($text : expr) => { ... };
}
Expand description

Converts a string literal into a const UTF-32 string slice of type Utf32Str.

Examples

use widestring::{utf32str, Utf32Str, Utf32String};

const STRING: &Utf32Str = utf32str!("My string");
assert_eq!(Utf32String::from_str("My string"), STRING);