IdIndexable

public protocol IdIndexable

An ID that can also be used as an index into a dense, contiguous array.

  • The index associated with the ID.

    The returned integer must be between 0 and the total number of elements - 1.

    Declaration

    Swift

    var index: Int { get }