URL

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

    Declaration

    Swift

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

    Parameters

    scalar

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

    Return Value

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

ScalarRepresentable