Skip to main content

Module index

Module index 

Source
๐Ÿ”ฌThis is a nightly-only experimental API. (sliceindex_wrappers #146179)
Expand description

Helper types for indexing slices.

Re-exportsยง

use crate::intrinsics::slice_get_unchecked; ๐Ÿ”’ Experimental
use crate::slice::SliceIndex; ๐Ÿ”’
use crate::cmp; ๐Ÿ”’
use crate::ops; ๐Ÿ”’
use crate::range; ๐Ÿ”’

Structsยง

ClampExperimental
Clamps an index, guaranteeing that it will only access valid elements of the slice.
LastExperimental
Always accesses the last element of the slice.