strip-slice-prefix

Crates.iostrip-slice-prefix
lib.rsstrip-slice-prefix
version0.1.0
created_at2025-09-05 15:23:44.562596+00
updated_at2025-09-05 15:23:44.562596+00
descriptionA function that strips a prefix from a slice
homepage
repositoryhttps://github.com/UgnilJoZ/strip-slice-prefix
max_upload_size
id1825701
size4,431
Jan Ole Zabel (UgnilJoZ)

documentation

README

Build Crates.io Documentation dependency status

strip-slice-prefix

This Rust crate provides a function to strip a prefix from a slice, similar to String::strip_prefix.

See the documentation or this example:

use strip_slice_prefix::strip_prefix;

let greetings = b"Hello world";
let addressee = strip_prefix(greetings, b"Hello ").unwrap();
assert_eq!(addressee, b"world");
Commit count: 3

cargo fmt