A byte string library for Rust
bstr is a byte string library for Rust and its 1.0 version has just been released! It provides string oriented operations on arbitrary sequences of bytes, but is most useful when those bytes are UTF-8. In other words, it provides a string type that is UTF-8 by convention, where as Rust’s built-in string types are guaranteed to be UTF-8.
This blog will briefly describe the API, do a deep dive on the motivation for creating bstr, show some short example programs using bstr and conclude with a few thoughts.
Target audience: Rust programmers with some background knowledge of UTF-8.
评论
?
参与讨论