mirror of
https://github.com/apple/swift-numerics
synced 2026-11-22 04:30:45 +00:00
Codable not available right-now in Embedded mode
This commit is contained in:
1 parent
be0d7c65d1
commit
6a7cf593bf
1 file changed
+2
@@ -12,6 +12,7 @@
|
||||
import RealModule
|
||||
|
||||
// FloatingPoint does not refine Codable, so this is a conditional conformance.
|
||||
@_unavailableInEmbedded
|
||||
extension Complex: Decodable where RealType: Decodable {
|
||||
public init(from decoder: Decoder) throws {
|
||||
var unkeyedContainer = try decoder.unkeyedContainer()
|
||||
@@ -21,6 +22,7 @@ extension Complex: Decodable where RealType: Decodable {
|
||||
}
|
||||
}
|
||||
|
||||
@_unavailableInEmbedded
|
||||
extension Complex: Encodable where RealType: Encodable {
|
||||
public func encode(to encoder: Encoder) throws {
|
||||
var unkeyedContainer = encoder.unkeyedContainer()
|
||||
|
||||
Reference in new issue
Block a user