Expand description
String representations.
Structs§
- BStr
- Byte string without UTF-8 validity guarantee.
- CStr
- A string that is guaranteed to have exactly one
NUL
byte, which is at the end. - CString
- An owned string that is guaranteed to have exactly one
NUL
byte, which is at the end. - Formatter
- Allows formatting of
fmt::Arguments
into a raw buffer. - RawFormatter
- Allows formatting of
fmt::Arguments
into a raw buffer.
Enums§
- CStr
Convert Error - Possible errors when using conversion functions in
CStr
.
Functions§
- as_
char_ ptr_ in_ const_ context - Returns a C pointer to the string.
- kstrtobool
- Convert common user inputs into boolean values using the kernel’s
kstrtobool
function. - kstrtobool_
bytes - Convert
&[u8]
tobool
by deferring tokernel::str::kstrtobool
.