==(_:_:)

Performs a unicode-aware string comparison on two UTF-8 strings.

BSON.UTF8View.swift:49
static func == (lhs: `Self`, rhs: BSON.UTF8View<some BidirectionalCollection<UInt8>>) -> Bool

Other members in extension

Instance members

  • var description: String

    Copies and validates the backing storage of the given UTF-8 string to a native Swift string, repairing invalid code units if needed.

  • var header: Int32

    The length that would be encoded in this string’s prefixed header. Equal to self.slice.count + 1.

  • var size: Int

    The size of this string when encoded with its header and trailing null byte. This is not the length encoded in the header itself.