Function unchecked_index::unchecked_index [] [src]

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

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.