]> git.lizzy.rs Git - rust.git/commit
auto merge of #19569 : murphm8/rust/ring_buf_insert, r=Gankro
authorbors <bors@rust-lang.org>
Fri, 12 Dec 2014 21:07:19 +0000 (21:07 +0000)
committerbors <bors@rust-lang.org>
Fri, 12 Dec 2014 21:07:19 +0000 (21:07 +0000)
commitffc111889e93bcd38222d9d74a70fdc26a78fcb5
tree1bb8cdc9400a4a53c1c7f97e676efa4bbf69a0ab
parent9146a919b616e39e528e4d7100d16eef52f1f852
parent40f28c70d653d980521c31d5444485b39e12e75e
auto merge of #19569 : murphm8/rust/ring_buf_insert, r=Gankro

This is a first pass at insert on RingBuf. I tried to keep it as simple as possible. I'm not sure of the performance implications of doing one copy vs. copying multiple times but moving a smaller amount of memory. I chose to stick with one copy, even if the amount of memory I have to move is larger.

I believe this is part of #18424

@Gankro mentioned this was missing.