/// Splits ring buffer into producer and consumer.
Splits ring buffer into producer and consumer.
Splits ring buffer into producer and consumer .
pub fn split(self) -> (Producer<T>, Consumer<T>) {
        let arc = Arc::new(self);
        (
            Producer { rb: arc.clone() },
            Consumer { rb: arc },
        )
    }
pub fn split ( self ) -> ( Producer < T > , Consumer < T > ) { let arc = Arc :: new ( self ) ; ( Producer { rb : arc . clone ( ) } , Consumer { rb : arc } , ) }
Splits ring buffer into producer and consumer.
Splits ring buffer into producer and consumer .
self