Function alloc::collections::vec_deque::wrap_index
source · fn wrap_index(logical_index: usize, capacity: usize) -> usize
Expand description
Returns the index in the underlying buffer for a given logical element index.