Expand description
Miscellaneous utilities.
Functions§
- clamp
- cstr⚠
- Error-tolerant C string import
- opt_
utf8_ ⚠cstr - Converts a
char *which is known to be valid UTF-8 into anOption<&str> - utf8_
cstr ⚠ - Converts a
char *which is known to be valid UTF-8 into a&str - utf8_
cstr_ ⚠bounds - Gets a known-to-be valid UTF-8 string given start/end-exclusive pointers to its bounds.
- utf8_
cstr_ ⚠len - Gets a known-to-be valid UTF-8 string given a pointer to its start and a length.