MatchTransformable
public protocol MatchTransformable
Protocol type for types that can provide step argument transformation capabilities
-
List of patterns that should be associated with this transform
Declaration
Swift
static var patterns: [String] { get } -
Given a match, transform the
Stringmatch into this type. Should returnnilif the transform should fail.Declaration
Swift
static func transform(_ match: Regex.Match) -> `Self`?
View on GitHub
MatchTransformable Protocol Reference