Structureswift-package-manager 6.0.3Basics
AnyKey
A type-erased ObservabilityMetadataKey
used when iterating through the ObservabilityMetadata
using its forEach
method.
struct AnyKey
A type-erased ObservabilityMetadataKey
used when iterating through the ObservabilityMetadata
using its forEach
method.
struct AnyKey
import Basics
struct ObservabilityMetadata
Provides type-safe access to the ObservabilityMetadata’s values. This API should ONLY be used inside of accessor implementations.
init()
var count: Int { get }
The number of items in the baggage.
var debugDescription: String { get }
var isEmpty: Bool { get }
A Boolean value that indicates whether the baggage is empty.
var underlyingError: Error? { get set }
subscript<Key>(key: Key.Type) -> Key.Value? where Key : ObservabilityMetadataKey { get set }
func forEach(_ body: (AnyKey, Sendable) throws -> Void) rethrows
Iterate through all items in this ObservabilityMetadata
by invoking the given closure for each item.
func merging(_ other: ObservabilityMetadata) -> ObservabilityMetadata
struct UnderlyingError
typealias Key = ObservabilityMetadataKey
var legacyDiagnosticLocation: DiagnosticLocationWrapper? { get set }
struct DiagnosticLocationWrapper
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
let keyType: Any.Type
The key’s type represented erased to an Any.Type
.
static func == (lhs: Self, rhs: Self) -> Bool
func hash(into hasher: inout Hasher)
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.