Skip to main content

Crate bytestring

Crate bytestring 

Source
Expand description

A UTF-8 encoded read-only string using Bytes as storage.

See docs for ByteString.

§Crate Features

  • simd: Uses simdutf8 (#![no_std]) for SIMD-accelerated UTF-8 validation (NEON on aarch64, simd128 on wasm32 when enabled, and SSE4.2/AVX2 on x86/x86_64 when enabled at compile time or via the std feature).
  • std: Enables runtime CPU feature detection (AVX2/SSE4.2) in simdutf8 on x86/x86_64 targets. bytestring itself remains #![no_std].
  • serde: Enables Serialize and Deserialize implementations for ByteString.

Structs§

ByteString
An immutable UTF-8 encoded string using Bytes as the storage.
FromUtf8Error
An error from ByteString::from_utf8 that retains the original bytes.