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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so 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.