spsc-bip-buffer
spsc-bip-buffer copied to clipboard
Make the BipBuffer generic over the stored type
Closes #11
Let me be honest, it is my first contribution to a Rust project so I may have gotten a bunch of things wrong.
To make the BipBuffer generic I added a generic parameter that needs to be:
Sized(I don't see how this could work for unsized types)SendandSync: this I am not completely sure but I think they are needed to make things well behaved
When creating a buffer from a length the type needs to implement Default and Clone.
All tests compile unmodified and I duplicated them all to run on u64. It may make sense to add a dependency on rstest to avoid duplicating everything.
I did not touch the docs but I will do it after a first round of review.
Travis did not trigger on this PR is it normal ?
Hi @MatthieuDartiailh! Thanks for the PR, I'll take a look as soon as I can, but it may take a few days.
Friendly ping @utaal
Friendly ping @utaal