Extension (Structure)mongokitten 7.9.7all tags
ByteBufferView (ext)
You’re viewing third-party extensions to ByteBufferView
, a struct from swift-nio.
You can also read the documentation forByteBufferView
itself.
extension ByteBufferView
You’re viewing third-party extensions to ByteBufferView
, a struct from swift-nio.
You can also read the documentation forByteBufferView
itself.
extension ByteBufferView
struct ByteBufferView
A view into a portion of a ByteBuffer
.
import MongoKitten
func compare<Comparator>(_ lhs: Comparator.Compared, _ rhs: Comparator.Compared) -> ComparisonResult where Comparator : SortComparator, Comparator == Self.Element
If lhs
is ordered before rhs
in the ordering described by the given sequence of SortComparator
s
func formatted<S>(_ style: S) -> S.FormatOutput where Self == S.FormatInput, S : FormatStyle
mutating func sort<Comparator>(using comparator: Comparator) where Comparator : SortComparator, Self.Element == Comparator.Compared
Sorts the collection using the given comparator to compare elements.
mutating func sort<S, Comparator>(using comparators: S) where S : Sequence, Comparator : SortComparator, Comparator == S.Element, Self.Element == Comparator.Compared
Sorts the collection using the given array of SortComparator
s to compare elements.
func sorted<Comparator>(using comparator: Comparator) -> [Self.Element] where Comparator : SortComparator, Self.Element == Comparator.Compared
Returns the elements of the sequence, sorted using the given comparator to compare elements.
func sorted<S, Comparator>(using comparators: S) -> [Self.Element] where S : Sequence, Comparator : SortComparator, Comparator == S.Element, Self.Element == Comparator.Compared
Returns the elements of the sequence, sorted using the given array of SortComparator
s to compare elements.