Extensions

The following extensions are available globally.

  • An extension of Array to represent the BSON array type.

    See more

    Declaration

    Swift

    struct Array<Element> : _DestructorSafeContainer
  • An extension of Bool to represent the BSON Boolean type.

    See more

    Declaration

    Swift

    struct Bool
  • An extension of Date to represent the BSON Datetime type. Supports millisecond level precision.

    See more

    Declaration

    Swift

    struct Date : ReferenceConvertible, Comparable, Equatable
  • An extension of Double to represent the BSON Double type.

    See more

    Declaration

    Swift

    struct Double
  • Int

    An extension of Int to represent the BSON Int32 or Int64 type. On 64-bit systems, Int corresponds to a BSON Int64. On 32-bit systems, it corresponds to a BSON Int32.

    See more

    Declaration

    Swift

    struct Int : FixedWidthInteger, SignedInteger
  • An extension of Int32 to represent the BSON Int32 type.

    See more

    Declaration

    Swift

    struct Int32 : FixedWidthInteger, SignedInteger
  • An extension of Int64 to represent the BSON Int64 type.

    See more

    Declaration

    Swift

    struct Int64 : FixedWidthInteger, SignedInteger
  • Extension to allow a UUID to be initialized from a Binary BSONValue.

    See more

    Declaration

    Swift

    @available(OSX 10.8, iOS 6.0, *)
    struct UUID : ReferenceConvertible, Hashable, Equatable, CustomStringConvertible
  • An extension of NSRegularExpression to allow it to be initialized from a RegularExpression BSONValue.

    See more

    Declaration

    Swift

    class NSRegularExpression : NSObject, NSCopying, NSSecureCoding
  • An extension of String to represent the BSON string type.

    See more

    Declaration

    Swift

    struct String