Transformer

public protocol Transformer

Adds the capability to transform a given object of type T into an object of target type, U.

  • Undocumented

    Declaration

    Swift

    associatedtype IType
  • Undocumented

    Declaration

    Swift

    associatedtype OType
  • Transforms the input type IType and returns OType as output.

    Declaration

    Swift

    func transform(_ input: IType) -> OType

    Parameters

    input

    The object to be transformed.

    Return Value

    Object of type OType