Instance Propertyswift-bson 0.3.1BSONABI
description
This option set, encoded in alphabetical order as a option string.
var description: String { get }
This option set, encoded in alphabetical order as a option string.
var description: String { get }
import BSONABI
Models the BSON type system and the binary interface of the BSON serialization format.
@frozen struct Options
A set of MongoDB regex matching options.
@frozen enum BSON
The namespace for all BSON types.
@frozen struct Regex
A MongoDB regex.
@frozen struct String
A Unicode string value that is a collection of characters.
init(parsing string: some StringProtocol) throws
Parses an option set from a MongoDB regex matching options string.
init(rawValue: UInt8)
static let i: `Self`
static let l: `Self`
static let m: `Self`
static let s: `Self`
static let u: `Self`
static let x: `Self`
let rawValue: UInt8
var size: Int { get }
The size of this option set, when encoded as a option string, including its trailing null byte.
func contains(option: BSON.Regex.Option) -> Bool