-
Notifications
You must be signed in to change notification settings - Fork 1
AnyPattern
kareman edited this page Jul 1, 2020
·
5 revisions
A type erased wrapper around a pattern. Can be used to store patterns in arrays and non-generic variables.
public struct AnyPattern: PatternExpressibleByStringInterpolation, Pattern
public init(_ p: Pattern)@inlinable public init(_ p: AnyPattern)public init(_ p: Literal)@inlinable public init(stringLiteral value: String)@inlinable public init(stringInterpolation: StringInterpolation)let _instructions: (inout Instructions) throws -> Voidlet _description: () -> Stringvar description: StringThe wrapped pattern. If you know the exact type you can unwrap it again.
let wrapped: Any@inlinable public func createInstructions(_ instructions: inout Instructions) throwsGenerated at 2020-08-23T12:56:49+0000 using swift-doc 1.0.0-beta.3.