ValueError
A decoder successfully to cast a variant to an expected value type, but it was not a valid case of the expected destination type.
@frozen struct ValueError<Value, Cases> where Value : Sendable
A decoder successfully to cast a variant to an expected value type, but it was not a valid case of the expected destination type.
@frozen struct ValueError<Value, Cases> where Value : Sendable
import BSONDecoding
import BSONABI
Models the BSON type system and the binary interface of the BSON serialization format.
@frozen enum BSON
The namespace for all BSON types.
protocol Sendable
protocol TraceableDecoder
A type that represents a scope for decoding operations.
@frozen struct BinaryDecoder
@frozen struct BinaryTypecastError
A list had an invalid number of elements.
@frozen struct DecodingError<Location> where Location : Sendable
An error occurred while decoding a document field.
@frozen struct DocumentDecoder<CodingKey> where CodingKey : Hashable, CodingKey : RawRepresentable, CodingKey : Sendable, CodingKey.RawValue == String
A thin wrapper around a native Swift dictionary providing an efficient decoding interface for a Document
.
@frozen enum DocumentKeyError<Key> where Key : Sendable
A document had an invalid key scheme.
@frozen struct FieldDecoder<Key> where Key : Sendable
@frozen struct ListDecoder
A thin wrapper around a native Swift array providing an efficient decoding interface for a List
.
@frozen struct OptionalDecoder<Key> where Key : Sendable
A field that may or may not exist in a document. This type is the return value of Dictionary
’s non-optional subscript, and is useful for obtaining structured diagnostics for “key-not-found” scenarios.
@frozen enum SingleKeyError<CodingKey>
protocol Error : Sendable
A type representing an error value that can be thrown.
init(invalid value: Value)
let value: Value
static func == (lhs: Self, rhs: any Error) -> Bool
func headline(plaintext: Bool = true) -> String
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Escapable
protocol Equatable
A type that can be compared for value equality.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
protocol CustomStringConvertible
A type with a customized textual representation.
var description: String { get }