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
String
match into this type. Should returnnil
if the transform should fail.Declaration
Swift
static func transform(_ match: Regex.Match) -> `Self`?