Function customDump(_:to:name:indent:maxDepth:)
@discardableResult
public func customDump<T, TargetStream>(
_ value: T,
to target: inout TargetStream,
name: String? = nil,
indent: Int = 0,
maxDepth: Int = .max
) -> T where TargetStream: TextOutputStream
Dumps the given value's contents using its mirror to the specified output stream.
Parameters
Name | Type | Description |
---|---|---|
value | T |
The value to output to the |
target | inout TargetStream |
The stream to use for writing the contents of |
name | String? |
A label to use when writing the contents of |
indent | Int |
The number of spaces to use as an indent for each line of the output. The default is |
maxDepth | Int |
The maximum depth to descend when writing the contents of a value that has nested components. The default is |
Returns
The instance passed as value
.