Optional
@frozen
extension Optional: ContentEquatable where Wrapped: ContentEquatable
-
Indicate whether the content of
self
is equals to the content of the given source value. Returnstrue
if both values compared are nil. The result of comparison between nil and non-nil values isfalse
.Declaration
Swift
@inlinable public func isContentEqual(to source: Wrapped?) -> Bool
Parameters
source
An optional source value to be compared.
Return Value
A Boolean value indicating whether the content of
self
is equals to the content of the given source value.