Instance Methodscinfu.swiftsoup 2.8.7SwiftSoup
matches(_:_:)
CombiningEvaluator.swift:111override func matches(_ root: Element, _ node: Element) -> Bool
override func matches(_ root: Element, _ node: Element) -> Bool
s9SwiftSoup18CombiningEvaluatorC2OrC7matchesySbAA7ElementC_AHtF
What are these?928FC
import SwiftSoup
final class Or
class CombiningEvaluator
Base combining (and, or) evaluator.
class Element
@frozen struct Bool
A value type whose instances are either true
or false
.
func matches(_ root: Element, _ element: Element) throws -> Bool
Test if the element meets the evaluator’s requirements.
override init(_ evaluators: [Evaluator])
Create a new Or evaluator. The initial evaluators are ANDed together and used as the first clause of the OR.
func add(_ evaluator: Evaluator)
override func toString() -> String