Structureswift-bson 0.3.1BSONABI
OptionError
A MongoDB regex matching options string contained an invalid unicode scalar.
@frozen struct OptionError
A MongoDB regex matching options string contained an invalid unicode scalar.
@frozen struct OptionError
import BSONABI
Models the BSON type system and the binary interface of the BSON serialization format.
@frozen struct Regex
A MongoDB regex.
@frozen enum BSON
The namespace for all BSON types.
init(pattern: String, options: Options)
init(pattern: String, options: some StringProtocol) throws
var options: Options
var pattern: String
var size: Int { get }
The size of this regex when encoded with interior and trailing null bytes.
@frozen enum Option
A MongoDB regex matching option.
@frozen struct Options
A set of MongoDB regex matching options.
protocol BitwiseCopyable
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Error : Sendable
A type representing an error value that can be thrown.
protocol Escapable
protocol Sendable
init(invalid codepoint: Unicode.Scalar)
let codepoint: Unicode.Scalar
var description: String { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
import BSON
An umbrella module providing a BSON parser, encoder, and decoder.
static func == (lhs: Self, rhs: any Error) -> Bool
func headline(plaintext: Bool = true) -> String