Classes
The following classes are available globally.
-
A representation of a YAML tag see: https://yaml.org/spec/1.2.2/ Types interested in Encoding and Decoding Anchors should conform to YamlAnchorProviding and YamlAnchorCoding respectively.
See moreDeclaration
Swift
public final class Anchor : RawRepresentable, ExpressibleByStringLiteral, Codable, Hashable
extension Anchor: CustomStringConvertible
-
Declaration
Swift
public final class Constructor
-
See moreCodable
-styleDecoder
that can be used to decode aDecodable
type from a givenString
and optional user info mapping. Similar toFoundation.JSONDecoder
.Declaration
Swift
public class YAMLDecoder
extension YAMLDecoder: TopLevelDecoder
-
Class responsible for emitting libYAML events.
See moreDeclaration
Swift
public final class Emitter
-
See moreCodable
-styleEncoder
that can be used to encode anEncodable
type to a YAML string using optional user info mapping. Similar toFoundation.JSONEncoder
.Declaration
Swift
public class YAMLEncoder
-
Parses YAML strings.
See moreDeclaration
Swift
public final class Parser
-
An implementation of RedundancyAliasingStrategy that defines alias-ability by Hashable-Equality. i.e. if two values are Hashable-Equal, they will be aliased in the resultant YML document.
See moreDeclaration
Swift
public class HashableAliasingStrategy : RedundancyAliasingStrategy
-
An implementation of RedundancyAliasingStrategy that defines alias-ability by the coded representation of the values. i.e. if two values encode to exactly the same, they will be aliased in the resultant YML document even if the values themselves are of different types
See moreDeclaration
Swift
public class StrictEncodableAliasingStrategy : RedundancyAliasingStrategy
-
Class used to resolve nodes to tags based on customizable rules.
See moreDeclaration
Swift
public final class Resolver
-
Tags describe the the type of a Node.
See moreDeclaration
Swift
public final class Tag
extension Tag: CustomStringConvertible
extension Tag: Hashable
extension Tag: RawRepresentable
extension Tag: Codable
extension Tag: ExpressibleByStringLiteral