| Crates.io | cons-rs |
| lib.rs | cons-rs |
| version | 0.7.3 |
| created_at | 2023-04-20 16:16:14.799339+00 |
| updated_at | 2023-05-25 14:32:21.653344+00 |
| description | A crate containing a Cons data structure. |
| homepage | |
| repository | https://github.com/cod10129/cons-rs |
| max_upload_size | |
| id | 844592 |
| size | 24,586 |
A crate containing a singly-linked list.
As of 0.4.1, cons-rs supports #[no_std] environments.
Note that it still depends on the alloc crate.
This version locks the entire immutable module behind a crate feature.
It also flips the Extend and IntoIterator implementations, so
creating a list from [1, 2] and popping off of it will yield 1 and then 2.
This version is a full rewrite of the entire crate. It has migrated from its past as a "list of nested pairs" to what it has actually been the entire time, a singly-linked list.
The main reason I didn't publish this as a new crate is because all the names are taken, and the use cases are mostly the same.