Struct slice_ring_buffer::Buffer [−][src]
pub struct Buffer<T> { /* fields omitted */ }Expand description
Mirrored memory buffer of length len.
The buffer elements in range [0, len/2) are mirrored into the range
[len/2, len).
Implementations
Interprets contents as a slice.
Warning: Some memory might be uninitialized.
Interprets contents as a mut slice.
Warning: Some memory might be uninitialized.
Interprets content as a slice and access the i-th element.
Warning: The memory of the i-th element might be uninitialized.
Interprets content as a mut slice and access the i-th element.
Warning: The memory of the i-th element might be uninitialized.
Total number of bytes in the buffer.
Create a mirrored buffer containing len Ts where the first half of
the buffer is mirrored into the second half.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Buffer<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Buffer<T> where
T: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more