Instance Subscriptswift-mongodb 0.29.3MongoBuiltins->Mongo
subscript(_:)
Mongo.ExpressionEncoder.swift:594subscript<Encodable>(key: Variadic) -> Encodable? where Encodable : BSONEncodable { get set }
subscript<Encodable>(key: Variadic) -> Encodable? where Encodable : BSONEncodable { get set }
s5MongoAAO0A8BuiltinsE17ExpressionEncoderVyxSgAE8VariadicOc12BSONEncoding13BSONEncodableRzluip
What are these?2D6WM
import Mongo
A single-type module that declares the Mongo
namespace.
import MongoBuiltins
@frozen struct ExpressionEncoder
enum Mongo
@frozen enum Variadic
protocol BSONEncodable
A type that can be encoded to a BSON variant value.
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<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 Unary
@frozen enum UnaryParenthesized
@frozen enum Zip
subscript<Predicate, Then, Else>(key: Cond) -> (if: Predicate?, then: Then?, else: Else?) where Predicate : BSONEncodable, Then : BSONEncodable, Else : BSONEncodable { get set }