Crates.io | cursed-collections |
lib.rs | cursed-collections |
version | 0.8.3 |
source | src |
created_at | 2019-01-15 03:36:40.832463 |
updated_at | 2022-08-20 00:00:02.433807 |
description | Collections that (seem to) break Rust safety. |
homepage | https://github.com/kolmogorov-fan-account/cursed-collections |
repository | |
max_upload_size | |
id | 108608 |
size | 57,047 |
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.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.