[−][src]Macro abi_stable::nul_str
Constructs a NulStr from a string literal.
Example
use abi_stable::{ sabi_types::NulStr, nul_str, }; assert_eq!( nul_str!("Huh?").to_str_with_nul(), "Huh?\0" ); assert_eq!( nul_str!("Hello!").to_str_with_nul(), "Hello!\0" );