Bool

extension Bool: ScalarConstructible
extension Bool: ScalarRepresentable
extension Bool: YAMLEncodable
  • Construct an instance of Bool, if possible, from the specified scalar.

    Declaration

    Swift

    public static func construct(from scalar: Node.Scalar) -> Bool?

    Parameters

    scalar

    The Node.Scalar from which to extract a value of type Bool, if possible.

    Return Value

    An instance of Bool, if one was successfully extracted from the scalar.

ScalarRepresentable