#linked-list #dynamically-sized #node #hold #dyn #value

nightly no-std dyn_list

A linked list that can hold dynamically sized values in its nodes

1 unstable release

new 0.0.0 Dec 13, 2024

#25 in #dynamically-sized

Download history 136/week @ 2024-12-09

136 downloads per month

MIT/Apache

95KB
2.5K SLoC

DynList

A linked list that can have dynamically sized types in their nodes.

use core::fmt::Debug;
use dyn_list::DynList;

let mut list = DynList::<dyn Debug>::new();

list.push_back_unsize("Hello, World");
list.push_back_unsize(0);
list.push_back_unsize([1, 2, 3, 4]);

println!("{list:?}");

This crate currently only works on the nightly channel.

TODO

This library is still in development and breaking changes may occur.

  • Comment unsafe blocks.
  • Add tests.

License

DynList is dual-licensed under either the Apache License Version 2.0 or MIT license at your option.

No runtime deps

Features