Add examples for RingBuf methods get, get_mut, iter, mut_iter
auto merge of #15762 : nham/rust/ringbuf_docs, r=alexcrichton

This adds examples for get(), get_mut(), swap(), iter() and mut_iter()