ElementPath

public struct ElementPath : Hashable

Represents the path to a specific element in a tree of nested collections.

Note

Foundation.IndexPath is disadvantageous in performance.
  • The element index (or offset) of this path.

    Declaration

    Swift

    public var element: Int
  • The section index (or offset) of this path.

    Declaration

    Swift

    public var section: Int
  • Creates a new ElementPath.

    Declaration

    Swift

    @inlinable
    public init(element: Int, section: Int)

    Parameters

    element

    The element index (or offset).

    section

    The section index (or offset).

  • Declaration

    Swift

    public var debugDescription: String { get }