protocol _MirrorType
Import | import Swift |
---|
Instance Variables
var disposition: _MirrorDisposition Required
How value
should be presented in an IDE.
Declaration
var disposition: _MirrorDisposition { get }
var objectIdentifier: ObjectIdentifier? Required
A unique identifier for value
if it is a class instance; nil
otherwise.
Declaration
var objectIdentifier: ObjectIdentifier? { get }
var quickLookObject: PlaygroundQuickLook? Required
A rich representation of value
for an IDE, or nil
if none is supplied.
Declaration
var quickLookObject: PlaygroundQuickLook? { get }
var valueType: Any.Type Required
Identical to value.dynamicType
.
Declaration
var valueType: Any.Type { get }
Subscripts
subscript(_: Int) Required
Get a name and mirror for the i
th logical child.
Declaration
subscript(i: Int) -> (String, _MirrorType) { get }
The type returned by
_reflect(x)
; supplies an API for runtime reflection onx
.