Format
public struct Format : CustomStringConvertible, CustomDebugStringConvertible, Hashable, Comparable
This struct holds a parsed format information instance.
-
This is the short format “key” string.
Declaration
Swift
public let key: String -
This is the short name for the format.
Declaration
Swift
public let name: String -
This is the longer description of the format.
Declaration
Swift
public let description: String -
This is the ISO 639-2 code for the language used for the name and description.
Declaration
Swift
public let language: String -
This is the local server format ID.
Declaration
Swift
public let id: String
-
Returns the format, as single string, with values separarated by tabs.
Declaration
Swift
public var asString: String { get }
-
We simply sort by key, so there’s consistency in the ordering.
Declaration
Swift
public static func < (lhs: Format, rhs: Format) -> BoolParameters
lhsThe left-hand side of the comparison.
rhsThe right-hand side of the comparison.
Return Value
True, if the lhs ID is less than the rhs ID.
-
Returns a simple textual description of the data.
Declaration
Swift
public var debugDescription: String { get }
View on GitHub