gapbuf

Crates.iogapbuf
lib.rsgapbuf
version0.1.4
sourcesrc
created_at2018-09-01 16:10:26.71012
updated_at2022-08-14 01:14:48.02
descriptionGeneric gap buffer.
homepage
repositoryhttps://github.com/frozenlib/gapbuf-rs
max_upload_size
id82498
size92,252
frozenlib (frozenlib)

documentation

https://docs.rs/gapbuf/

README

gapbuf-rs

Crates.io Docs.rs Actions Status

Generic gap buffer implementation in Rust.

This crate provides the type GapBuffer. This type has methods similar to Vec.

Examples

use gapbuf::gap_buffer;

let mut b = gap_buffer![1, 2, 3];
b.insert(1, 10);
assert_eq!(b, [1, 10, 2, 3]);

b.remove(2);
assert_eq!(b, [1, 10, 3]);

License

This project is dual licensed under Apache-2.0/MIT. See the two LICENSE-* files for details.

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.

Commit count: 161

cargo fmt