Enumerationfwcd.swift-utils 4.6.2Utils
FixedArray
A workaround that provides a stack-allocated, fixed size array up to length 10 and falls back to dynamically allocation for longer arrays.
enum FixedArray<T>
A workaround that provides a stack-allocated, fixed size array up to length 10 and falls back to dynamically allocation for longer arrays.
enum FixedArray<T>
import Utils
case len0
case len1(T)
case len2(T, T)
case len3(T, T, T)
case len4(T, T, T, T)
case len5(T, T, T, T, T)
case len6(T, T, T, T, T, T)
case len7(T, T, T, T, T, T, T)
case len8(T, T, T, T, T, T, T, T)
case len9(T, T, T, T, T, T, T, T, T)
case len10(T, T, T, T, T, T, T, T, T, T)
case lenDyn([T])
var count: Int { get }
var isEmpty: Bool { get }
subscript(n: Int) -> T { get }
func withAppended(_ value: T) -> FixedArray<T>
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Sendable
protocol Escapable