We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45d4c7a commit 4c0e8a0Copy full SHA for 4c0e8a0
Sources/OpenGraph/Runtime/Metadata.swift
@@ -23,6 +23,15 @@ public func OGTypeApplyFields2(
23
body: (UnsafePointer<Int8>, Int, Any.Type) -> Bool
24
) -> Bool
25
26
+@inlinable
27
+@inline(__always)
28
+public func forEachField(
29
+ _ type: Any.Type,
30
+ do body: (UnsafePointer<Int8>, Int, Any.Type) -> Void
31
+) {
32
+ OGTypeApplyFields(type, body: body)
33
+}
34
+
35
extension Metadata: Swift.Hashable, Swift.CustomStringConvertible {
36
@inlinable
37
@inline(__always)
0 commit comments