Not
public struct Not : URLMatchable
A wrapper for a URLMatchable that matches a URL whenever its wrapped value does not.
Usage:
let url = URL(string: "http://example.com")!
Not(Host("example.com")).matches(url) //> false
Not(Scheme.mailto).matches(url) //> true
-
Creates a
Notvalue that wraps the givenURLMatchable, negating it’smatchesresult.Declaration
Swift
public init(_ matchable: URLMatchable)Parameters
matchableThe
URLMatchableto be negated. -
A predicate that determines whether
Notmatches a givenURL.In other words,
Notmatches is the inverse of its wrapped value.Declaration
Swift
public func matches(url: URL) -> BoolParameters
urlThe
URLto be matched.Return Value
trueifmatchesof the wrapped value returnsfalse. Otherwise,false.
View on GitHub
Install in Dash
Not Structure Reference