Lines Matching refs:new
37 pub fn new<S>(storage: S) -> RingBuffer<'a, T> in new() method
406 RingBuffer::new(slice) in from()
416 let mut ring = RingBuffer::new(vec![0; 2]); in test_buffer_length_changes()
440 let mut ring = RingBuffer::new(vec![0; 5]); in test_buffer_enqueue_dequeue_one_with()
478 let mut ring = RingBuffer::new(vec![0; 5]); in test_buffer_enqueue_dequeue_one()
502 let mut ring = RingBuffer::new(vec![b'.'; 12]); in test_buffer_enqueue_many_with()
562 let mut ring = RingBuffer::new(vec![b'.'; 12]); in test_buffer_enqueue_many()
575 let mut ring = RingBuffer::new(vec![b'.'; 12]); in test_buffer_enqueue_slice()
594 let mut ring = RingBuffer::new(vec![b'.'; 12]); in test_buffer_dequeue_many_with()
637 let mut ring = RingBuffer::new(vec![b'.'; 12]); in test_buffer_dequeue_many()
660 let mut ring = RingBuffer::new(vec![b'.'; 12]); in test_buffer_dequeue_slice()
683 let mut ring = RingBuffer::new(vec![b'.'; 12]); in test_buffer_get_unallocated()
717 let mut ring = RingBuffer::new(vec![b'.'; 12]); in test_buffer_write_unallocated()
733 let mut ring = RingBuffer::new(vec![b'.'; 12]); in test_buffer_get_allocated()
754 let mut ring = RingBuffer::new(vec![b'.'; 12]); in test_buffer_read_allocated()
775 let mut no_capacity: RingBuffer<u8> = RingBuffer::new(vec![]); in test_buffer_with_no_capacity()
792 let mut ring = RingBuffer::new(vec![b'.'; 8]); in test_buffer_write_wholly()