| Crates.io | strip-slice-prefix |
| lib.rs | strip-slice-prefix |
| version | 0.1.0 |
| created_at | 2025-09-05 15:23:44.562596+00 |
| updated_at | 2025-09-05 15:23:44.562596+00 |
| description | A function that strips a prefix from a slice |
| homepage | |
| repository | https://github.com/UgnilJoZ/strip-slice-prefix |
| max_upload_size | |
| id | 1825701 |
| size | 4,431 |
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");