Crates.io | const_list |
lib.rs | const_list |
version | 0.1.0 |
source | src |
created_at | 2023-08-28 17:30:26.403912 |
updated_at | 2023-08-28 17:30:26.403912 |
description | A tiny linked list usable in const contexts. |
homepage | |
repository | https://github.com/DouglasDwyer/const_list |
max_upload_size | |
id | 957196 |
size | 4,769 |
const_list
provides a minimal linked-list which may be used at compile-time. For example:
const MY_LIST: ConstList<'static, i32> = ConstList::new()
.push(2)
.push(4)
.push(8);
assert_eq!(8, MY_LIST.pop().0.unwrap());