We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc6e102 commit 6295494Copy full SHA for 6295494
src/lib.rs
@@ -191,6 +191,7 @@ impl<T> CircularQueue<T> {
191
/// assert_eq!(iter.next(), Some(&3));
192
/// assert_eq!(iter.next(), Some(&2));
193
/// ```
194
+ #[inline]
195
pub fn push(&mut self, x: T) {
196
if self.data.len() < self.capacity() {
197
self.data.push(x);
@@ -303,6 +304,7 @@ impl<T> CircularQueue<T> {
303
304
/// assert_eq!(iter.next(), Some(&mut 3));
305
/// assert_eq!(iter.next(), Some(&mut 4));
306
307
308
pub fn asc_iter_mut(&mut self) -> AscIterMut<T> {
309
let (a, b) = self.data.split_at_mut(self.insertion_index);
310
b.iter_mut().chain(a.iter_mut())
0 commit comments