Expand description
String representations.
Structs§
- BStr
- Byte string without UTF-8 validity guarantee.
- CStr
- A string that is guaranteed to have exactly one
NULbyte, which is at the end. - CString
- An owned string that is guaranteed to have exactly one
NULbyte, which is at the end. - Formatter
- Allows formatting of
fmt::Argumentsinto a raw buffer. - RawFormatter
- Allows formatting of
fmt::Argumentsinto 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
kstrtoboolfunction. - kstrtobool_
bytes - Convert
&[u8]toboolby deferring tokernel::str::kstrtobool.