public extension PureYAML.Tagged { /// The presentation style a collection had in the source document, or the /// style a caller wants a collection to take on output. `nil` on a node /// means "no per-node preference": the emitter's document-wide policy /// decides. enum CollectionStyle: String, Equatable, Sendable, CustomStringConvertible { case block case flow public var description: String { rawValue } } } extension PureYAML.Tagged.CollectionStyle { init(_ style: PureYAML.Parsing.CollectionStyle) { self = switch style { case .block: .block case .flow: .flow } } }