UnitValue is now codable
This commit is contained in:
@@ -206,7 +206,7 @@ public enum Unit: String, CaseIterable, CustomStringConvertible, Codable,
|
|||||||
// but the internal `value` will be stored as a `Double`.
|
// but the internal `value` will be stored as a `Double`.
|
||||||
public struct UnitValue<ValueType: ConvertibleToDouble>:
|
public struct UnitValue<ValueType: ConvertibleToDouble>:
|
||||||
CustomStringConvertible, Equatable,
|
CustomStringConvertible, Equatable,
|
||||||
Comparable
|
Comparable, Codable
|
||||||
{
|
{
|
||||||
// Store the value internally as a Double for consistent calculations
|
// Store the value internally as a Double for consistent calculations
|
||||||
public let value: Double
|
public let value: Double
|
||||||
|
|||||||
Reference in New Issue
Block a user