const_list 0.1.0

A tiny linked list usable in const contexts.
Documentation
  • Coverage
  • 100%
    10 out of 10 items documented1 out of 10 items with examples
  • Size
  • Source code size: 4.45 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.38 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • DouglasDwyer/const_list
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • DouglasDwyer

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