Registry / utility / utf8-slice

utf8-slice

JSON →
library1.0.0rscratesunverified

Lightweight utilities for slicing UTF-8 strings safely and efficiently.

# Cargo.toml [dependencies] utf8_slice = "1.0.0"
INSTALL
IMPORT
SIG · UTF8-SLICE
U
utf8-slice
utilityrustv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Utf8Slice
use utf8_slice::Utf8Slice;

Create a UTF-8 slice and extract a substring.

use utf8_slice::Utf8Slice; fn main() { let s = Utf8Slice::new("Hello, 世界"); let slice = s.slice(0..7); println!("Sliced: {}", slice); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
utf8-slice — cargo add utf8-slice · libregistry