PatternElement
public protocol PatternElement
MatchElements are used by Matcher instances to be able to recognise patterns.
Currently, the two main kind of MatchElement classes are Keywords and Variables
-
Using this method, an element returns how much the String provided in the
prefixparameter matches the current elementDeclaration
Swift
func matches(prefix: String, options: PatternOptions) -> MatchResult<Any>Parameters
prefixThe input
optionsOptions that modify the matching algorithm
Return Value
The result of the match operation
View on GitHub
Install in Dash
PatternElement Protocol Reference