| Crates.io | once-list2 |
| lib.rs | once-list2 |
| version | 0.3.2 |
| created_at | 2024-12-04 08:12:07.483038+00 |
| updated_at | 2025-03-01 06:10:34.250331+00 |
| description | A single linked list which is backed by `OnceCell`. You can append the value to the non-mutable `OnceList`. |
| homepage | |
| repository | https://github.com/wada314/once-list |
| max_upload_size | |
| id | 1471675 |
| size | 53,025 |
This library is a natural extension of the std::cell::OnceCell (or its original crate once_cell) library. This library provides a single-linked list OnceList type that allows you to store multiple values in a single OnceList instance even without the need for the mutability.
once_cell - The original crate that provides a OnceCell type. If you only need to store a single value, this crate is quite enough.elsa - A crate that provides Frozen collection types that allows you to store multiple values without the need for the mutability. They provides something similar to Vec or HashMap, so if your use case requires more than 3-ish values or you need more complex data structure than a single-linked list, then you should use this crate instead.By default, none of the features are enabled.
nightly: Enables the nightly-only features.
allocator_api std unstable feature. Note that even without this feature, this crate still supports the allocators thanks to the allocator_api2 crate.OnceList for more details.sync: This library internally uses std::cell::OnceCell which is not thread-safe. When you enable this feature, this library uses the thread-safe ]std::sync::OnceLock instead.