IntervallicFragmentable

public protocol IntervallicFragmentable: Intervallic, Fragmentable
    where Fragment: Intervallic, Fragment.Metric == Metric

Interface for types which are Intervallic, and can be fragmented into a type which shares its Metric type.

Associated Types

  • The fragment of an IntervallicFragmentable type.

    Declaration

    Swift

    associatedtype Fragment

Instance Methods

Available where Metric: Zero

  • fragment(in:) Default implementation

    Default Implementation

    Declaration

    Swift

    public func fragment(in range: PartialRangeUpTo<Metric>) -> Fragment

    Return Value

    The Fragment of this IntervallicFragmentable-conforming type value in the given range.

  • fragment(in:) Default implementation

    Default Implementation

    Declaration

    Swift

    public func fragment(in range: PartialRangeFrom<Metric>) -> Fragment

    Return Value

    The Fragment of this IntervallicFragmentable-conforming type value in the given range.