Registry / utility / substring

substring

JSON →
library1.4.5rscratesunverified

Provides a substring method for string types in Rust.

utility
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.

use substring::Substring;

Extract a substring from a string slice using byte indices.

use substring::Substring; let s = "hello world"; let sub = s.substring(0, 5); assert_eq!(sub, "hello");
Debug
Known footguns
gotchaUses byte indices, not character indices; panics on non-UTF-8 boundaries.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources