strip-slice-prefix 0.1.0

A function that strips a prefix from a slice
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 3.96 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 489.06 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • UgnilJoZ/strip-slice-prefix
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • UgnilJoZ

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");