Crate const_list

Source
Expand description

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

Structsยง

ConstList
A singly-linked list of items that may be created in const contexts.
ConstListIterator
Iterates over the contents of a ConstList.