Macro c8string

Source
macro_rules! c8string {
    ($string:literal) => { ... };
}
Available on crate feature alloc only.
Expand description

Make a new C8String from a string literal. This macro adds the null terminator for you and checks validity at compile time.

This is equivalent to calling C8String::from(c8!("literal")). See c8! for more information.