Enumerationswift-mongodb 0.29.3MongoBuiltins->Mongo
Unary
Mongo.ExpressionEncoder.swift:35@frozen enum Unary
@frozen enum Unary
import Mongo
A single-type module that declares the Mongo
namespace.
import MongoBuiltins
@frozen struct ExpressionEncoder
enum Mongo
case abs
case arrayToObject
case binarySize
case bitNot
case objectSize
case objectToArray
case ceil
case exp
case first
case floor
case last
case literal
case ln
case log10
case reverseArray
case size
case sqrt
init(_ output: consuming BSON.Output)
static var frame: BSON.DocumentFrame { get }
subscript(key: Map) -> Mongo.MapDocument? { get set }
subscript(key: Zip) -> Mongo.ZipDocument? { get set }
subscript(key: Filter) -> Mongo.FilterDocument? { get set }
subscript(key: Reduce) -> Mongo.ReduceDocument? { get set }
subscript(key: Switch) -> Mongo.SwitchDocument? { get set }
subscript(key: SortArray) -> Mongo.SortArrayDocument? { get set }
subscript<Sequence, Element, Start, End>(key: Index) -> (in: Sequence?, of: Element?, from: Start?, to: End?) where Sequence : BSONEncodable, Element : BSONEncodable, Start : BSONEncodable, End : BSONEncodable { get set }
subscript<Sequence, Element>(key: Index) -> (in: Sequence?, of: Element?) where Sequence : BSONEncodable, Element : BSONEncodable { get set }
subscript<Array, Index>(key: Element) -> (of: Array?, at: Index?) where Array : BSONEncodable, Index : BSONEncodable { get set }
subscript<Base, Exponential>(key: Log) -> (base: Base?, of: Exponential?) where Base : BSONEncodable, Exponential : BSONEncodable { get set }
subscript<Base, Exponent>(key: Pow) -> (base: Base?, to: Exponent?) where Base : BSONEncodable, Exponent : BSONEncodable { get set }
subscript<Start, End, Step>(key: Range) -> (from: Start?, to: End?, by: Step?) where Start : BSONEncodable, End : BSONEncodable, Step : BSONEncodable { get set }
subscript<Start, End>(key: Range) -> (from: Start?, to: End?) where Start : BSONEncodable, End : BSONEncodable { get set }
subscript<Fraction>(key: Quantization) -> Fraction? where Fraction : BSONEncodable { get set }
subscript<Encodable>(key: UnaryParenthesized) -> Encodable? where Encodable : BSONEncodable { get set }
Creates a $not
or $isArray
expression. This subscript already brackets the expression when passing it in an argument tuple; doing so manually will create an expression that always evaluates to false for $not
(because an array evaluates to true), or true for $isArray
(because an array is an array).
subscript<Encodable>(key: Unary) -> Encodable? where Encodable : BSONEncodable { get set }
subscript<Encodable>(key: Variadic) -> Encodable? where Encodable : BSONEncodable { get set }
subscript<Array, Index, Distance>(key: Slice) -> (Array?, at: Index?, distance: Distance?) where Array : BSONEncodable, Index : BSONEncodable, Distance : BSONEncodable { get set }
subscript<Dividend, Divisor>(key: Division) -> (Dividend?, by: Divisor?) where Dividend : BSONEncodable, Divisor : BSONEncodable { get set }
subscript<Encodable, Array>(key: In) -> (Encodable?, in: Array?) where Encodable : BSONEncodable, Array : BSONEncodable { get set }
subscript<Count, Array>(key: Superlative) -> (Count?, of: Array?) where Count : BSONEncodable, Array : BSONEncodable { get set }
subscript<Minuend, Difference>(key: Subtract) -> (Minuend?, minus: Difference?) where Minuend : BSONEncodable, Difference : BSONEncodable { get set }
subscript<Fraction, Places>(key: Quantization) -> (Fraction?, places: Places?) where Fraction : BSONEncodable, Places : BSONEncodable { get set }
subscript<Array, Distance>(key: Slice) -> (Array?, distance: Distance?) where Array : BSONEncodable, Distance : BSONEncodable { get set }
subscript<T0, T1, T2, T3>(key: Variadic) -> (T0?, T1?, T2?, T3?) where T0 : BSONEncodable, T1 : BSONEncodable, T2 : BSONEncodable, T3 : BSONEncodable { get set }
subscript<T0, T1, T2>(key: Variadic) -> (T0?, T1?, T2?) where T0 : BSONEncodable, T1 : BSONEncodable, T2 : BSONEncodable { get set }
subscript<First, Second>(key: Binary) -> (First?, Second?) where First : BSONEncodable, Second : BSONEncodable { get set }
subscript<T0, T1>(key: Variadic) -> (T0?, T1?) where T0 : BSONEncodable, T1 : BSONEncodable { get set }
subscript(key: Cond, yield: (inout Mongo.SetEncoder<Cond.Clause>) -> ()) -> Void { mutating get }
subscript(key: Unary, yield: (inout Mongo.ExpressionEncoder) -> ()) -> Void { mutating get }
subscript(key: Variadic, yield: (inout Mongo.ExpressionEncoder) -> ()) -> Void { mutating get }
subscript(key: Variadic, using: Int.Type = Int.self, yield: (inout Mongo.SetListEncoder) -> ()) -> Void { mutating get }
consuming func move() -> BSON.Output
@frozen enum Binary
@frozen enum Cond
@frozen enum Division
@frozen enum Element
@frozen enum Filter
@frozen enum In
@frozen enum Index
@frozen enum Log
@frozen enum Map
@frozen enum Pow
@frozen enum Quantization
@frozen enum Range
@frozen enum Reduce
@frozen enum Slice
@frozen enum SortArray
@frozen enum Subtract
@frozen enum Superlative
@frozen enum Switch
@frozen enum UnaryParenthesized
@frozen enum Variadic
@frozen enum Zip
subscript<Predicate, Then, Else>(key: Cond) -> (if: Predicate?, then: Then?, else: Else?) where Predicate : BSONEncodable, Then : BSONEncodable, Else : BSONEncodable { get set }
protocol BitwiseCopyable
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
protocol Sendable
init?(rawValue: String)
var hashValue: Int { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func hash(into hasher: inout Hasher)