arraydeque
arraydeque copied to clipboard
A circular buffer with fixed capacity (Rust).
I couldn't find any reason for this to be the case in the documentation or the issue tracker, so I'm guessing it got missed? If there **is** a reason that...
In this function you use the unsafe keyword for many safe expressions. However, I found that only 2 functions are real unsafe operations (see the list below). We need to...
In circumstances where a user knows they are not going to pop_back/front passed a particular item, but may otherwise be doing various pushes and pops, it would be nice to...
Now that Rust supports const generics, `ArrayDeque` should take the capacity as a type parameter rather than an array type. This prevents the deque from using smaller index types, but...
The auto derive Clone add a unneeded bound on T. I can do the fixing PR if you want.
ArrayDeque used to compile but suddenly I'm stuck with this error. Does anyone know where it came from ? ``` error[E0554]: `#![feature]` may not be used on the stable release...
Currently `Box::new(ArrayDeque::())` will likely cause a stackoverflow due to the `ArrayDeque` being written to the stack and then copied into the Box. This occurs even in release mode. This manifests...
I'd like to be able to derive `Copy`. For example: ```rs #[derive(Clone, Copy)] struct Foo { ring: ArrayDeque } ``` Did I overlook an easy way to do this? If...
I'm writing some embedded code using this crate to buffer USB data. To read data, I have to call a `read_packet(&mut [u8])` method, but accessing an `ArrayDeque`'s backing array directly...
The `extern crate ` isn't necessary since the 2018 edition.