Fragment

public struct Fragment
extension ContiguousSegmentCollection.Fragment: RandomAccessCollectionWrapping
extension ContiguousSegmentCollection.Fragment: IntervallicFragmentable
extension ContiguousSegmentCollection.Fragment: Equatable where
    Segment: Equatable, Segment.Fragment: Equatable

A fragment of a ContiguousSegmentCollection.

Type Properties

  • Declaration

    Swift

    public static var empty: Fragment { get }

    Return Value

    A Fragment with no elements.

Instance Properties

  • Declaration

    Swift

    public var offset: Metric { get }

    Return Value

    The offset of the fragment within the context of the whole.

Initializers

RandomAccessCollectionWrapping

  • Declaration

    Swift

    public var base: [(Metric, Segment.Fragment)] { get }

    Return Value

    The RandomAccessCollection base of segment fragments indexed by their offsets.

  • Declaration

    Swift

    public var offsets: [Metric] { get }

    Return Value

    The offsets of each Segment.Fragment or Segment contained herein.

Type Aliases

IntervallicFragmentable