public extension PureYAML.Tagged { struct Mapping: Equatable, Sendable { public var pairs: [Pair] public var tag: Tag? /// The `&name` anchor on this mapping in the source document, or the /// anchor to attach on output. `nil` when the node is unanchored. public var anchor: String? /// The mapping's presentation style. Populated from the source on /// parse; `nil` on hand-built nodes that have no style preference. public var style: CollectionStyle? public init( pairs: [Pair], tag: Tag? = nil, anchor: String? = nil, style: CollectionStyle? = nil, ) { self.pairs = pairs self.tag = tag self.anchor = anchor self.style = style } public subscript(_ key: String) -> Node? { pairs.first { $0.key == key }?.value } } }