#scoped #vec #root #element #allowing #free #divergence

scoped-vec

A library for scoped Vecs, allowing multi-level divergence from the root element

1 unstable release

0.0.1 Feb 17, 2020

#42 in #scoped

WTFPL OR 0BSD

11KB
189 lines

scoped-vec.rs

License: WTFPL https://docs.rs/scoped-vec/ Downloads

A library for scoped Vecs, allowing multi-level divergence from the root element.

This is useful for monitoring state within a de facto tree where links to parents aren't necessarily needed. Consumers can keep references to a specific parent if required and check the values from the scope of their choosing, parents are free to be dropped if they're no longer required.

The full std::vec::Vec spec has not yet been implemented but as the library stabilises, more and more of the Vec library will be supported - however there will be some divergence from the API where necessary given the structural differences of a ScopedVec.

The library isn't yet ready for consumption in any production-level software but feel free to use it in side projects and make contributions where you find necessary.

Dependencies

~79KB