Functions
The following functions are available globally.
-
Static global function for comparing equality between any two objects.
This function will return
trueif:- Both objects are
nil - The objects both conform to
NSObjectProtocoland theisEqual()function returnstrue. - The left-hand object conforms to
RSDObjectProtocoland theisEqual()function returnstrue.
Declaration
Swift
public func RSDObjectEquality(_ objA: Any?, _ objB: Any?) -> Bool - Both objects are
-
Static global function for getting the hash value for any object.
- If the object conforms to
NSObjectProtocol, thenhashwill be returned. - If the object casts to
AnyHashable, then thehashValuewill be returned. - If the object conforms to
RSDObjectProtocol, then thehashValuewill be returned.
Declaration
Swift
public func RSDObjectHash(_ obj: Any?) -> Int - If the object conforms to
View on GitHub
Functions Reference