Write to target
the textual representation of x
most suitable
for debugging.
- If
T
conforms toDebugPrintable
, writex.debugDescription
- Otherwise, if
T
conforms toPrintable
, writex.description
- Otherwise, if
T
conforms toStreamable
, writex
- Otherwise, fall back to a default textual representation.
See also: debugPrintln(x, &target)
Declaration
@
inline
(
never
)
func
debugPrint
<
T
,
TargetStream
:
OutputStreamType
>
(
value
:
T
,
inout
target
:
TargetStream
)
Write to the console the textual representation of
x
most suitable for debugging.T
conforms toDebugPrintable
, writex.debugDescription
T
conforms toPrintable
, writex.description
T
conforms toStreamable
, writex
See also:
debugPrintln(x)
Declaration
@
inline
(
never
)
func
debugPrint
<
T
>
(
x
:
T
)