Implement Hash for RingBuf
Implement PartialOrd for RingBuf
Hash the length of the RingBuf before hashing elements
auto merge of #16020 : nham/rust/ringbuf_hash_ord, r=alexcrichton

cc #15294