spare_buffer

Crates.iospare_buffer
lib.rsspare_buffer
version0.1.1
sourcesrc
created_at2023-02-13 17:41:14.111693
updated_at2023-02-14 11:01:50.777683
descriptionA wrapper around Vec that provides access to the “spare” capacity of the vector as a mutable slice.
homepagehttps://crates.io/crates/spare_buffer
repositoryhttps://github.com/dEajL3kA/spare_buffer
max_upload_size
id784142
size15,157
Eric Rothstein (dEajL3kA)

documentation

https://docs.rs/spare_buffer/latest/index.html

README

Spare Buffer

Crates.io Unlicense

A wrapper around Vec<T> that provides access to the "spare" capacity of the vector as a &mut[T] slice.

Useful to allocate "spare" capacity at the end of the underlying vector and fill it directly, e.g. by read()ing from a file or stream, without initialize the memory first. Once filled, the vector can be "extended" into the previously allocated spare capacity.

Crates.io:
https://crates.io/crates/spare_buffer

API Documentation:
https://docs.rs/spare_buffer/latest/index.html

Examples:
https://github.com/dEajL3kA/spare_buffer/tree/master/examples

Commit count: 4

cargo fmt