Other Extensions
The following extensions are available globally.
-
Extension to make
CallbackEventHandler
anSDAMEventHandler
when the event type is anSDAMEvent
.Declaration
Swift
extension CallbackEventHandler: SDAMEventHandler where EventType == SDAMEvent
extension CallbackEventHandler: CommandEventHandler where EventType == CommandEvent
-
Extension to make
WeakEventHandler
aCommandEventHandler
when the referenced handler is aCommandEventHandler
.Declaration
Swift
extension WeakEventHandler: CommandEventHandler where T: CommandEventHandler
extension WeakEventHandler: SDAMEventHandler where T: SDAMEventHandler
-
Convenience extension to get static bsonType from an instance
See moreDeclaration
Swift
extension BSONValue
-
Declaration
Swift
extension JSON: Encodable
extension JSON: ExpressibleByFloatLiteral
extension JSON: ExpressibleByIntegerLiteral
extension JSON: ExpressibleByStringLiteral
extension JSON: ExpressibleByBooleanLiteral
extension JSON: ExpressibleByArrayLiteral
extension JSON: ExpressibleByDictionaryLiteral
extension JSON: Equatable