RawRepresentableTransformer
public struct RawRepresentableTransformer<Type> : Transformer where Type : RawRepresentable
A Transformer that transforms RawRepresentable types.
-
Declaration
Swift
public typealias Output = Type.RawValue -
An error thown when untransforming a value.
See moreDeclaration
Swift
public enum UntransformError : LocalizedError -
Declaration
Swift
public init() -
Declaration
Swift
public func transformValue(_ value: Type) -> Type.RawValue -
Declaration
Swift
public func untransformValue(_ rawValue: Type.RawValue) throws -> Type
View on GitHub
RawRepresentableTransformer Structure Reference