Module index

Module index 

Source
Expand description

Index types. See ::index_vec.

Macros§

index_box
A macro similar to the stdlib’s vec![], but producing an Box<IndexSlice<I, [T]>> (That is, an IndexBox<I, [T]>).
index_vec
A macro equivalent to the stdlib’s vec![], but producing an IndexVec.

Structs§

BaseIndex32
A specialized wrapper around a primitive number.
IndexSlice
A slice that only accepts indices of a specific type. Note that the intended usage is as IndexSlice<I, [T]>.
IndexVec
A Vec that only accepts indices of a specific type.

Traits§

Idx
Represents a wrapped value convertable to and from a usize.
IdxRangeBounds
This trait to function in API signatures where Vec<T> or [T] use R: RangeBounds<usize>. There are blanket implementations for the basic range types in core::ops for all Idx types. e.g. Range<I: Idx>, RangeFrom<I: Idx>, RangeTo<I: Idx>, etc all implement it.
IdxSliceIndex
This is the equivalent of the sealed core::slice::SliceIndex trait. It cannot be overridden from user, code nor should it normally need use directly (Outside of trait bounds, I guess).

Type Aliases§

IndexBox
IndexBox<I, [T]>: An alias for indexed boxed slice.