Functions
The following functions are available globally.
-
Compares two
RuleAnnotations
Declaration
Swift
public func areEqual(lhs: RuleAnnotations, rhs: RuleAnnotations) -> Bool
-
Creates a new instance of the rule which negates its match. Note that negate does not
toggle
, that is !!rule != rule// Creates a negated version of of the rule let notLetter = !CharacterSet.letters.skip()
Parameters
rule
The rule to apply to
Return Value
A new version of the rule