pub fn ring_buffer(capacity: usize) -> (Writer, Reader)Expand description
Creates a new RingBuffer with the given capacity, and returns a handle for writing and a handle for reading.
ยงPanics
Panics if capacity is 0 or greater than isize::max_value().