SocketIOClientConfiguration
public struct SocketIOClientConfiguration : ExpressibleByArrayLiteral, Collection, MutableCollection
An array-like type that holds SocketIOClientOption
s
-
Type of element stored.
Declaration
Swift
public typealias Element = SocketIOClientOption
-
Index type.
Declaration
Swift
public typealias Index = Array<SocketIOClientOption>.Index
-
Iterator type.
Declaration
Swift
public typealias Iterator = Array<SocketIOClientOption>.Iterator
-
SubSequence type.
Declaration
Swift
public typealias SubSequence = Array<SocketIOClientOption>.SubSequence
-
The start index of this collection.
Declaration
Swift
public var startIndex: Index { get }
-
The end index of this collection.
Declaration
Swift
public var endIndex: Index { get }
-
Whether this collection is empty.
Declaration
Swift
public var isEmpty: Bool { get }
-
The number of elements stored in this collection.
Declaration
Swift
public var count: Index.Stride { get }
-
The first element in this collection.
Declaration
Swift
public var first: Element? { get }
-
Declaration
Swift
public subscript(bounds: Range<Index>) -> SubSequence { get set }
-
Creates a new
SocketIOClientConfiguration
from an array literal.Declaration
Swift
public init(arrayLiteral elements: Element...)
Parameters
arrayLiteral
The elements.
-
Creates an iterator for this collection.
Declaration
Swift
public func makeIterator() -> Iterator
Return Value
An iterator over this collection.
-
Special method that inserts
element
into the collection, replacing any other instances ofelement
.Declaration
Swift
public mutating func insert(_ element: Element, replacing replace: Bool = true)
Parameters
element
The element to insert.
replacing
Whether to replace any occurrences of element to the new item. Default is
true
.