ContextTransformer
public protocol ContextTransformer
Transformer to be applied to transform one type of context to another.
-
Type of source context
Declaration
Swift
associatedtype SourceContext
-
Type of target context
Declaration
Swift
associatedtype TargetContext
-
Transforms one value into another.
Declaration
Swift
func transform(_ context: SourceContext) throws -> TargetContext
Parameters
context
Source content of type
SourceContext
Return Value
converted context of type
TargetContext