#linked-list #context #const #tiny

const_list

A tiny linked list usable in const contexts

1 unstable release

0.1.0 Aug 28, 2023

#95 in #linked-list

Download history 10/week @ 2024-07-22 16/week @ 2024-07-29 28/week @ 2024-08-05 31/week @ 2024-08-12 32/week @ 2024-08-19 54/week @ 2024-08-26 31/week @ 2024-09-02 26/week @ 2024-09-09 26/week @ 2024-09-16 50/week @ 2024-09-23 22/week @ 2024-09-30 9/week @ 2024-10-07 33/week @ 2024-10-14 22/week @ 2024-10-21 15/week @ 2024-10-28 33/week @ 2024-11-04

103 downloads per month
Used in 11 crates (4 directly)

MIT/Apache

5KB
79 lines

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());

lib.rs:

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());

No runtime deps