unchecked_index

Function unchecked_index

Source
pub unsafe fn unchecked_index<T>(v: T) -> UncheckedIndex<T>
Expand description

Create a new unchecked indexing wrapper.

This function is unsafe to call because it allows all further indexing on the wrapper to omit bounds checks.

ยงSafety

The caller must ensure that all indexing of the resulting UncheckedIndex wrapper is in bounds of the underlying container.