Skip to main content

slot

Function slot 

Source
unsafe fn slot<T>(
    front: *mut T,
    front_len: usize,
    back: *mut T,
    index: usize,
) -> *mut T
Expand description

Returns a pointer to the slot at the given logical index.

§Safety

There are front_len slots in front and if index >= front_len, there are index - front_len + 1 slots in back at least.