Expand description
A UTF-8 encoded read-only string using Bytes as storage.
See docs for ByteString.
§Crate Features
simd: Usessimdutf8(#![no_std]) for SIMD-accelerated UTF-8 validation (NEON onaarch64,simd128onwasm32when enabled, and SSE4.2/AVX2 onx86/x86_64when enabled at compile time or via thestdfeature).std: Enables runtime CPU feature detection (AVX2/SSE4.2) insimdutf8onx86/x86_64targets.bytestringitself remains#![no_std].serde: EnablesSerializeandDeserializeimplementations forByteString.
Structs§
- Byte
String - An immutable UTF-8 encoded string using
Bytesas the storage. - From
Utf8 Error - An error from
ByteString::from_utf8that retains the original bytes.