Type Function VectorIndex [src]
Returns the smallest type of unsigned ints capable of indexing any element within the given vector type.
Prototype
pub fn VectorIndex(comptime VectorType: type) type
Parameters
VectorType: type
Source
pub fn VectorIndex(comptime VectorType: type) type {
return std.math.IntFittingRange(0, vectorLength(VectorType) - 1);
}