Function collections::vec_deque::wrap_index [] [src]

fn wrap_index(index: usize, size: usize) -> usize

Returns the index in the underlying buffer for a given logical element index.