RowRange

public struct RowRange : Equatable, Hashable

Range between two rows defined by zero-based indexes (inclusive).

  • Undocumented

    Declaration

    Swift

    public init(from first: Row = 0, to last: Row = 0)
  • Undocumented

    Declaration

    Swift

    public let first: Row
  • Undocumented

    Declaration

    Swift

    public var count: Int { get }
  • Determines whether the range contains a specific row. Range limits (first and last) are considered to be included.

    Declaration

    Swift

    public func contains(_ row: Row) -> Bool
  • Determines whether the range intersects another range. Touching range limits are considered to generate intersection as well.

    Declaration

    Swift

    public func intersects(_ range: RowRange) -> Bool
  • Returns the intersection with another range. Touching range limits are considered to generate intersection as well. Returns nil when ranges don’t intersect.

    Declaration

    Swift

    public func intersecting(_ range: RowRange) -> RowRange?