FragmentType

public struct FragmentType: OptionSet

Fragment types for search configuration filtering

  • section for matches

    Declaration

    Swift

    public static let match                     = FragmentType(type: 0)
  • section for matches within matches

    Declaration

    Swift

    public static let subMatch                  = FragmentType(type: 1)
  • section for text surrounding matches

    Declaration

    Swift

    public static let text                      = FragmentType(type: 2)
  • all

    all fragment type

    Declaration

    Swift

    public static let all: FragmentType         = [.match, .subMatch, .text]
  • matches and sub-matches only

    Declaration

    Swift

    public static let allMatch: FragmentType    = [.match, .subMatch]
  • OptionSet property

    Declaration

    Swift

    public let rawValue: Int
  • OptionSet initializer

    Declaration

    Swift

    public init(rawValue: Int)