YAMLEncodable

public protocol YAMLEncodable : Encodable

Types conforming to this protocol can be encoded by YamlEncoder.

Available where Self: ScalarRepresentable

  • box() Default implementation

    Default Implementation

    Returns this value wrapped in a Node.scalar.

    Declaration

    Swift

    public func box() -> Node