Structureswift-package-manager 6.0.3Basics
DiagnosticLocationWrapper
Observability.swift:612This declaration is deprecated: temporary for transition TSCBasic.Diagnostic -> SwiftDriver.Diagnostic
struct DiagnosticLocationWrapper
This declaration is deprecated: temporary for transition TSCBasic.Diagnostic -> SwiftDriver.Diagnostic
struct DiagnosticLocationWrapper
s6Basics21ObservabilityMetadataV25DiagnosticLocationWrapperV
What are these?5W6NU
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 AnyKey
A type-erased ObservabilityMetadataKey
used when iterating through the ObservabilityMetadata
using its forEach
method.
struct UnderlyingError
typealias Key = ObservabilityMetadataKey
var legacyDiagnosticLocation: DiagnosticLocationWrapper? { get set }
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Sendable
init(_ underlying: DiagnosticLocation)
var description: String { get }