PrintValueType
enum PrintValueType
An enum for storing the general type of the value passed in a print statement.
The enum divides cases into one of the three generic collection types, a single type or none.
The type of value passed to the print statement is indeterminate therefore value element types are either Any or AnyHashable.
The general type of a value is all that is required to handle printing elements appropriately to the console (the purpose of the print statement values argument).
Note
Note EachPrintValueType case is calculated from a message NodeType and not stored on the message itself.
-
The value is of type
Dictionary<AnyHashable, Any>dictionary: the associated dictionary value.
Declaration
Swift
case dictionaryValue(dictionary: Dictionary<AnyHashable, Any>) -
The value is of type
Array<Any>array: the associated array value.
Declaration
Swift
case arrayValue(array: [Any]) -
The value is of type
Set<AnyHashable>set: the associated set value.
Declaration
Swift
case setValue(set: Set<AnyHashable>) -
The value is a single value of type
Anysingle: the associated value.
Declaration
Swift
case singleValue(single: Any)
PrintValueType Enumeration Reference