Macro abi_stable::nul_str
source · [−]macro_rules! nul_str {
( $($str:expr),* $(,)* ) => { ... };
}
👎 Deprecated since 0.10.3:
Use either nulstr
or nulstr_trunc
instead
Expand description
Constructs a NulStr
from a string literal.
Correctness
This truncates the passed in string if it contains nul bytes, which means that silent truncation can happen with arbitrary inputs, rather than compile-time errors.