Trait swap_buffer_queue::buffer::Drain
source · pub unsafe trait Drain: Buffer {
type Value;
// Required method
unsafe fn remove(&mut self, index: usize) -> (Self::Value, usize);
}
Expand description
Buffer
whose values can be drained from.
Safety
Calling Drain::remove
decreased the inserted range (see BufferValue::insert_into
)
by the size of the removed value.