PathAppendable

public protocol PathAppendable

Represents a component that can be part of a path, by representing itself with a string to be appended to the path.

  • toPath() Default implementation

    String represention of the path that represents the component.

    By default, it uses the String’s describing init. This means you can override the toPath function, or implement the CustomStringConvertible protocol and override the description property.

    Seealso

    String(describing: Subject) init.

    Default Implementation

    Declaration

    Swift

    func toPath() -> String