StaticStorage
public struct StaticStorage : Sendable
extension StaticStorage: Equatable
extension StaticStorage: Hashable
The address of some statically allocated storage.
-
The identifier of the storage.
Declaration
Swift
public let id: AnyDeclID -
The type for which storage is allocated.
Declaration
Swift
public let pointee: AnyType -
The function that is used to initialize the allocated storage on first access.
Declaration
Swift
public let initializer: Function.ID -
Creates a static allocation identified by
idfor an object of typet, initialized by callinginitializerthe first time it is accessed.Declaration
Swift
public init( _ t: AnyType, identifiedBy id: AnyDeclID, initializedWith initializer: Function.ID ) -
Declaration
Swift
public static func == (l: `Self`, r: `Self`) -> Bool -
Declaration
Swift
public func hash(into hasher: inout Hasher)
View on GitHub