_MirrorType

protocol _MirrorType

The type returned by _reflect(x); supplies an API for runtime reflection on x.

Import import Swift

Instance Variables

var count: Int Required

The count of value's logical children.

Declaration

var count: Int { get }
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 summary: String Required

A string description of value.

Declaration

var summary: String { get }
var value: Any Required

The instance being reflected.

Declaration

var value: Any { 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 ith logical child.

Declaration

subscript(i: Int) -> (String, _MirrorType) { get }