Add debug assertions to validate NUL terminator in c strings The `unchecked` variants from the stdlib usually perform the check anyway if debug assertions are on (for example, `unwrap_unchecked`). This PR does the same thing for `CStr` and `CString`, validating the correctness for the NUL byte in debug mode. |
||
|---|---|---|
| .. | ||
| c_str | ||
| os_str | ||
| c_str.rs | ||
| mod.rs | ||
| os_str.rs | ||