cursed-collections

Crates.iocursed-collections
lib.rscursed-collections
version0.8.3
sourcesrc
created_at2019-01-15 03:36:40.832463
updated_at2022-08-20 00:00:02.433807
descriptionCollections that (seem to) break Rust safety.
homepagehttps://github.com/kolmogorov-fan-account/cursed-collections
repository
max_upload_size
id108608
size57,047
Simon GĂ©nier (kolmogorov-fan-account)

documentation

README

Cursed Collections

Collections that (seem) to break Rust safety.

  • SymbolTable: a memory-efficient set of String, where its members can be equality compared in constant time.
  • AppendOnlyVec: a sequence where elements can be appended even when you hold reference to previous elements.
  • LazyArray: an array where elements can be initialized at a later time, even where reference to other, initialized elements exist.

Safety

All collections in this crate are implemented with unsafe code. While I cannot be 100% sure the interface they offer is safe, I use the following techniques to increase my confidence.

Documentation

https://docs.rs/cursed-collections/

Commit count: 0

cargo fmt