Instance Propertyswift-bson 0.3.1BSONABI
pattern
BSON.Regex.swift:8var pattern: String
var pattern: String
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.
@frozen struct String
A Unicode string value that is a collection of characters.
init(pattern: String, options: Options)
init(pattern: String, options: some StringProtocol) throws
var options: Options
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 OptionError
A MongoDB regex matching options string contained an invalid unicode scalar.
@frozen struct Options
A set of MongoDB regex matching options.