Skip to main content

Module deque

Module deque 

Source
Expand description

ALTREP storage for native-element ring buffers.

Element and region reads preserve the split buffer. A contiguous pointer is exposed only after VecDeque::make_contiguous, without converting the owner to a Vec or copying into an R vector.

Macrosยง

impl_native_deque ๐Ÿ”’

Functionsยง

contiguous_slice ๐Ÿ”’
Borrow the complete logical sequence only when it occupies one segment.
copy_region ๐Ÿ”’
Copy at most two contiguous regions, with no allocation or rearrangement.