Skip to content

reflectStruct(_:)

Azoy edited this page May 6, 2021 · 2 revisions

reflectStruct(_:)

The main entry point to grab a struct's metadata from some metatype that represents a struct.

public func reflectStruct(_ type: Any.Type) -> StructMetadata? 

Parameters

  • type: Metatype to get struct metadata from.

Returns

StructMetadata for the given metatype.

reflectStruct(_:)

The main entry point to grab a struct's metadata from some instance.

public func reflectStruct(_ instance: Any) -> StructMetadata? 

Parameters

  • instance: Any instance value of a struct to get metadata from.

Returns

StructMetadata for the given instance.

Types
Protocols
Global Variables
Global Functions
Clone this wiki locally