HorizonElement

public protocol HorizonElement

Defines the interface to horizon elements.

  • id

    Identifier of this element.

    Declaration

    Swift

    var id: Int { get }
  • Identifier of the path to which this element belongs.

    Declaration

    Swift

    var pathID: Int { get }
  • Start offset on the path.

    Declaration

    Swift

    var startOffset: Measurement<UnitLength> { get }
  • End offset on the path.

    Declaration

    Swift

    var endOffset: Measurement<UnitLength> { get }
  • Type of the element. Used to filter elements by type.

    Declaration

    Swift

    var elementType: HorizonElementType { get }