const_list

Crates.ioconst_list
lib.rsconst_list
version0.1.0
sourcesrc
created_at2023-08-28 17:30:26.403912
updated_at2023-08-28 17:30:26.403912
descriptionA tiny linked list usable in const contexts.
homepage
repositoryhttps://github.com/DouglasDwyer/const_list
max_upload_size
id957196
size4,769
Douglas Dwyer (DouglasDwyer)

documentation

README

const_list

Crates.io Docs.rs Unsafe Forbidden

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());
Commit count: 2

cargo fmt