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;
}
Expand description
Buffer
whose values can be drained from.
Safety
Calling Drain::remove
remove the value inserted at index index (see [
InsertIntoBuffer::insert_into`])
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.
Implementors§
source§impl<T> Drain for WriteVectoredVecBuffer<T>
Available on crate features write
and std
only.
impl<T> Drain for WriteVectoredVecBuffer<T>
Available on crate features
write
and std
only.source§impl<T, const N: usize> Drain for WriteVectoredArrayBuffer<T, N>
Available on crate features write
and std
only.
impl<T, const N: usize> Drain for WriteVectoredArrayBuffer<T, N>
Available on crate features
write
and std
only.