Last active
June 3, 2020 15:24
-
-
Save maximkrouk/dd553dcecdabe3df2c988e7b3532d4fa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension <#Box#>: ExpressibleByNilLiteral where Content: ExpressibleByNilLiteral { | |
@inlinable | |
public convenience init(nilLiteral: Void) { self.init(nilLiteral: nilLiteral) } | |
} | |
extension <#Box#>: ExpressibleByFloatLiteral where Content: ExpressibleByFloatLiteral { | |
@inlinable | |
public convenience init(floatLiteral value: Content.FloatLiteralType) { | |
self.init(.init(floatLiteral: value)) | |
} | |
} | |
extension <#Box#>: ExpressibleByIntegerLiteral where Content: ExpressibleByIntegerLiteral { | |
@inlinable | |
public convenience init(integerLiteral value: Content.IntegerLiteralType) { | |
self.init(Content(integerLiteral: value)) | |
} | |
} | |
extension <#Box#>: ExpressibleByBooleanLiteral where Content: ExpressibleByBooleanLiteral { | |
@inlinable | |
public convenience init(booleanLiteral value: Content.BooleanLiteralType) { | |
self.init(Content(booleanLiteral: value)) | |
} | |
} | |
extension <#Box#>: ExpressibleByExtendedGraphemeClusterLiteral where Content: ExpressibleByExtendedGraphemeClusterLiteral { | |
@inlinable | |
public convenience init(extendedGraphemeClusterLiteral value: Content.ExtendedGraphemeClusterLiteralType) { | |
self.init(Content(extendedGraphemeClusterLiteral: value)) | |
} | |
} | |
extension <#Box#>: ExpressibleByUnicodeScalarLiteral where Content: ExpressibleByUnicodeScalarLiteral { | |
@inlinable | |
public convenience init(unicodeScalarLiteral value: Content.UnicodeScalarLiteralType) { | |
self.init(Content(unicodeScalarLiteral: value)) | |
} | |
} | |
extension <#Box#>: ExpressibleByStringLiteral where Content: ExpressibleByStringLiteral { | |
@inlinable | |
public convenience init(stringLiteral value: Content.StringLiteralType) { | |
self.init(Content(stringLiteral: value)) | |
} | |
} | |
extension <#Box#> where Content: ExpressibleByArrayLiteral { | |
@inlinable | |
public convenience init() { self.init([]) } | |
} | |
extension <#Box#> where Content: ExpressibleByDictionaryLiteral { | |
@inlinable | |
public convenience init() { self.init([:]) } | |
} | |
extension <#Box#> where Content: ExpressibleByStringLiteral { | |
@inlinable | |
public convenience init() { self.init("") } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension <#Box#>: ExpressibleByNilLiteral where Content: ExpressibleByNilLiteral { | |
@inlinable | |
public init(nilLiteral: Void) { self.init(nilLiteral: nilLiteral) } | |
} | |
extension <#Box#>: ExpressibleByFloatLiteral where Content: ExpressibleByFloatLiteral { | |
@inlinable | |
public init(floatLiteral value: Content.FloatLiteralType) { | |
self.init(.init(floatLiteral: value)) | |
} | |
} | |
extension <#Box#>: ExpressibleByIntegerLiteral where Content: ExpressibleByIntegerLiteral { | |
@inlinable | |
public init(integerLiteral value: Content.IntegerLiteralType) { | |
self.init(Content(integerLiteral: value)) | |
} | |
} | |
extension <#Box#>: ExpressibleByBooleanLiteral where Content: ExpressibleByBooleanLiteral { | |
@inlinable | |
public init(booleanLiteral value: Content.BooleanLiteralType) { | |
self.init(Content(booleanLiteral: value)) | |
} | |
} | |
extension <#Box#>: ExpressibleByExtendedGraphemeClusterLiteral where Content: ExpressibleByExtendedGraphemeClusterLiteral { | |
@inlinable | |
public init(extendedGraphemeClusterLiteral value: Content.ExtendedGraphemeClusterLiteralType) { | |
self.init(Content(extendedGraphemeClusterLiteral: value)) | |
} | |
} | |
extension <#Box#>: ExpressibleByUnicodeScalarLiteral where Content: ExpressibleByUnicodeScalarLiteral { | |
@inlinable | |
public init(unicodeScalarLiteral value: Content.UnicodeScalarLiteralType) { | |
self.init(Content(unicodeScalarLiteral: value)) | |
} | |
} | |
extension <#Box#>: ExpressibleByStringLiteral where Content: ExpressibleByStringLiteral { | |
@inlinable | |
public init(stringLiteral value: Content.StringLiteralType) { | |
self.init(Content(stringLiteral: value)) | |
} | |
} | |
extension <#Box#> where Content: ExpressibleByArrayLiteral { | |
@inlinable | |
public init() { self.init([]) } | |
} | |
extension <#Box#> where Content: ExpressibleByDictionaryLiteral { | |
@inlinable | |
public init() { self.init([:]) } | |
} | |
extension <#Box#> where Content: ExpressibleByStringLiteral { | |
@inlinable | |
public init() { self.init("") } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See also:
Back to index