Skip to content

killercup/replace-rs

Repository files navigation

replace-rs

Build Status

A small crate giving you a simple container that allows easy and cheap replacement of parts of its content, with the ability to prevent changing the same parts multiple times.

Examples

extern crate replace;

fn main() {
    let mut d = Data::new(b"foo bar baz");

    d.replace_range(4..7, b"lol", false).unwrap();
    assert_eq!("foo lol baz".as_bytes(), d.to_vec().as_slice());
}

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages