Expand description
Index types. See ::index_vec.
Macros§
- index_
box - A macro similar to the stdlib’s
vec![], but producing anBox<IndexSlice<I, [T]>>(That is, anIndexBox<I, [T]>). - index_
vec - A macro equivalent to the stdlib’s
vec![], but producing anIndexVec.
Structs§
- Base
Index32 - A specialized wrapper around a primitive number.
- Index
Slice - A slice that only accepts indices of a specific type. Note that the intended
usage is as
IndexSlice<I, [T]>. - Index
Vec - A Vec that only accepts indices of a specific type.
Traits§
- Idx
- Represents a wrapped value convertable to and from a
usize. - IdxRange
Bounds - This trait to function in API signatures where
Vec<T>or[T]useR: RangeBounds<usize>. There are blanket implementations for the basic range types incore::opsfor all Idx types. e.g.Range<I: Idx>,RangeFrom<I: Idx>,RangeTo<I: Idx>, etc all implement it. - IdxSlice
Index - This is the equivalent of the sealed
core::slice::SliceIndextrait. It cannot be overridden from user, code nor should it normally need use directly (Outside of trait bounds, I guess).
Type Aliases§
- Index
Box IndexBox<I, [T]>: An alias for indexed boxed slice.