Scalar

public struct Scalar
extension Node.Scalar: Comparable
extension Node.Scalar: Equatable
extension Node.Scalar: Hashable

Scalar node.

  • This node’s string value.

    Declaration

    Swift

    public var string: String { get set }
  • tag

    This node’s tag (its type).

    Declaration

    Swift

    public var tag: Tag
  • The style to be used when emitting this node.

    Declaration

    Swift

    public var style: Style
  • The location for this node.

    Declaration

    Swift

    public var mark: Mark?
  • The style to use when emitting a Scalar.

    See more

    Declaration

    Swift

    public enum Style : UInt32
  • Create a Node.Scalar using the specified parameters.

    Declaration

    Swift

    public init(_ string: String, _ tag: Tag = .implicit, _ style: Style = .any, _ mark: Mark? = nil)

    Parameters

    string

    The string to generate this scalar.

    tag

    This scalar’s Tag.

    style

    The style to use when emitting this Scalar.

    mark

    This scalar’s Mark.