Optional
@frozen
extension Optional: ContentEquatable where Wrapped: ContentEquatable
-
Indicate whether the content of
selfis equals to the content of the given source value. Returnstrueif 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?) -> BoolParameters
sourceAn optional source value to be compared.
Return Value
A Boolean value indicating whether the content of
selfis equals to the content of the given source value.
View on GitHub
Optional Extension Reference