Other Extensions

The following extensions are available globally.

  • Declaration

    Swift

    struct Array<Element> : _DestructorSafeContainer
  • Declaration

    Swift

    struct Dictionary<Key, Value> where Key : Hashable
  • Default implementation LaunchEnvironmentValue for string. Usage example:

    public struct StringLaunchEnvironment: LaunchEnvironmentProtocol {
    
        public typealias Value = String
        public let value: Value
        public var launchEnvironments: [String : String]? {
            return [uniqueIdentifier: value]
        }
        public init(value: Value) {
            self.value = value
        }
    }
    

    Note

    internal initializer would be generated automatically but it would not fulfill requirement of public protocol.
    See more

    Declaration

    Swift

    struct String