Mark

public struct Mark
extension Mark: CustomStringConvertible

The pointer position.

  • Line number starting from 1.

    Declaration

    Swift

    public let line: Int
  • Column number starting from 1. libYAML counts columns in UnicodeScalar.

    Declaration

    Swift

    public let column: Int

CustomStringConvertible Conformance

  • A textual representation of this instance.

    Declaration

    Swift

    public var description: String { get }

Snippet

  • Returns snippet string pointed by Mark instance from YAML String.

    Declaration

    Swift

    public func snippet(from yaml: String) -> String