UnkeyedContainerElementReference
public struct UnkeyedContainerElementReference : ContainerElementReference
References an element in any unkeyed container meta. This meta may be in the storage of another container or directly on the stack.
-
Inits a new unkeyed container element reference.
Before calling this method, make sure that ref.meta is a EncodingUnkeyedContainerMeta and index is accessible.
- index: The index to access. This index needs to be valid.
Declaration
Swift
public init(referencing ref: Reference, at index: Int)
Parameters
ref
The underlying reference.
-
Declaration
Swift
public var meta: Meta { get }
-
Declaration
Swift
public mutating mutating func insert(_ meta: Meta)