==(_:_:)
Performs a unicode-aware string comparison on two UTF-8 strings.
static func == (lhs: `Self`, rhs: BSON.UTF8View<some BidirectionalCollection<UInt8>>) -> Bool
Performs a unicode-aware string comparison on two UTF-8 strings.
static func == (lhs: `Self`, rhs: BSON.UTF8View<some BidirectionalCollection<UInt8>>) -> Bool
s7BSONABI4BSONO8UTF8ViewV2eeoiySbAEy_xG_AEy_qd__GtSKRd__s5UInt8V7ElementRtd__lFZ
What are these?63XD3
where Bytes:BidirectionalCollection, Bytes.Element == UInt8
import BSONABI
Models the BSON type system and the binary interface of the BSON serialization format.
@frozen struct UTF8View<Bytes> where Bytes : BidirectionalCollection, Bytes.Element == UInt8
A BSON UTF-8 string. This string is allowed to contain null bytes.
@frozen enum BSON
The namespace for all BSON types.
protocol BidirectionalCollection<Element> : Collection where Self.Indices : BidirectionalCollection, Self.SubSequence : BidirectionalCollection
A collection that supports backward as well as forward traversal.
@frozen struct UInt8
An 8-bit unsigned integer value type.
@frozen struct Bool
A value type whose instances are either true
or false
.
var description: String { get }
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 { get }
The length that would be encoded in this string’s prefixed header. Equal to self.slice.count + 1
.
var size: Int { get }
The size of this string when encoded with its header and trailing null byte. This is not the length encoded in the header itself.