Rust’s VecDeque exposes its contents as two slices. With memory mapping tricks it’s possible to map the same page of memory twice, and get a ring buffer that looks like one contiguous slice (there are some libraries for this).
VecDeque
Rust’s
VecDequeexposes its contents as two slices. With memory mapping tricks it’s possible to map the same page of memory twice, and get a ring buffer that looks like one contiguous slice (there are some libraries for this).