Expand description
Const equivalents of CStr methods
Structs§
- Error returned by
from_bytes_until_nulwhen the input slice either does not terminate with nul. - Error returned by
from_bytes_with_nulwhen the input slice either does not terminate with nul, or contains inner nul bytes.
Functions§
- Converts a byte slice which contains any amount of nul bytes into a
&CStr. Const equivalent ofCStr::from_bytes_until_nul - Converts a nul-terminated byte slice into a
&CStr. Const equivalent ofCStr::from_bytes_with_nul - Converts this CStr to a byte slice, excluding the nul terminator. Const equivalent of
CStr::to_bytes - Converts this CStr to a byte slice, including the nul terminator. Const equivalent of
CStr::to_bytes_with_nul - Converts this CStr to a string slice, excluding the nul terminator. Const equivalent of
CStr::to_str