UrlConvertible

public protocol UrlConvertible

Any entity implementing this protocol declares that it is able to possibly represent itself as a url. The conversion to this url may fail, however.

  • url

    Returns self as url if possible or nil otherwise.

    Declaration

    Swift

    var url: URL? { get }