Skip to content

reflectStruct(__)

tevelee edited this page Jul 21, 2026 · 1 revision

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 Typealiases
Global Variables
Global Functions

Clone this wiki locally