C++的std::string可以认为是char序列,类似Rust的Vec<u8>;C++17引入的string_view则类似于&[u8]。
std::string
Vec<u8>
string_view
&[u8]