Skip to main content

Crate ruff_index

Crate ruff_index 

Source
Expand description

Provides new-type wrappers for collections that are indexed by a Idx rather than usize.

Inspired by rustc_index.

Structs§

FrozenIndexVec
A structurally immutable sequence of T indexed by I.
IndexSlice
A view into contiguous Ts, indexed by I rather than by usize.
IndexVec
An owned sequence of T indexed by I

Traits§

Idx
Represents a newtype wrapper used to index into a Vec or a slice.

Attribute Macros§

newtype_index
Derives a newtype wrapper that can be used as an index. The wrapper can represent indices up to u32::MAX - 1.