BindingDeclUse
enum BindingDeclUse : Hashable
How a binding declaration is being used.
-
The declaration is used to introduce new bindings unconditionally.
The pattern matches any possible value produced by the declaration’s initializer, if present.
Declaration
Swift
case irrefutable -
The declaration is used as a condition.
The pattern acts as a condition that is satisfied iff it matches the value of the declaration’s initializer, which must be present.
Declaration
Swift
case condition -
The declaration is used as a filter.
The pattern acts as a condition that is satisfied iff it matches an instance of the payload.
Declaration
Swift
case filter(matching: AnyType) -
The type that is narrowed by the pattern of the declaration if it is used as a filter.
Declaration
Swift
var filteredType: AnyType? { get }
View on GitHub