NULLx76 / ringbuffer

A fixed-size circular buffer written in Rust.
https://crates.io/crates/ringbuffer
MIT License
95 stars 20 forks source link

ringbuffer_trait: add extend_from_slice #134

Open phip1611 opened 5 months ago

phip1611 commented 5 months ago

This adds an extend_from_slice function to the RingBuffer trait. The default implementation calls push() for each element. However, by creating specialized implementations for the various buffers, one can do various performance optimizations in a follow-up.

Partially closes #124

phip1611 commented 2 weeks ago

I rebased the PR. Are we good to go?