init(bson:)
Witnesses Character
’s BSONStringDecodable
conformance, throwing a BSON.ValueError
instead of trapping on multi-character input.
init(bson: BSON.UTF8View<ArraySlice<UInt8>>) throws
This is needed because its LosslessStringConvertible.init(_:)
witness traps on invalid input instead of returning nil, which causes its default implementation (where Self
is LosslessStringConvertible
) to do the same.