StructuredSnippet
public struct StructuredSnippet : Hashable
A structured representation of a snippet. Initialize it with the raw string from a
snippet column of a SearchRelation, and it will read the special characters embedded
in the snippet string and transform them into this structured representation.
-
Undocumented
Declaration
Swift
public var ellipsisAtStart: Bool -
Undocumented
Declaration
Swift
public var ellipsisAtEnd: Bool -
Undocumented
Declaration
Swift
public var string: String -
Undocumented
Declaration
Swift
public var matches: [Range<String.Index>] -
Undocumented
Declaration
Swift
public init(rawString: String) -
Declaration
Swift
public static func == (lhs: StructuredSnippet, rhs: StructuredSnippet) -> Bool -
Declaration
Swift
public func hash(into hasher: inout Hasher)
StructuredSnippet Structure Reference