Returns `true` if the queue is empty.
(&self)
| 211 | |
| 212 | /// Returns `true` if the queue is empty. |
| 213 | pub fn is_empty(&self) -> bool { |
| 214 | self.len() == 0 |
| 215 | } |
| 216 | |
| 217 | /// Returns the fixed capacity of the ring buffer. |
| 218 | pub fn capacity(&self) -> usize { |