Enumerationswift 6.0.3Foundation
Unit
enum Unit
enum Unit
import Foundation
class EnergyFormatter
case calorie
case joule
case kilocalorie
case kilojoule
override init()
required init?(coder: NSCoder)
var isForFoodEnergyUse: Bool
var numberFormatter: NumberFormatter!
var unitStyle: Formatter.UnitStyle
func string(fromJoules numberInJoules: Double) -> String
func string(fromValue value: Double, unit: EnergyFormatter.Unit) -> String
func unitString(fromJoules numberInJoules: Double, usedUnit unitp: UnsafeMutablePointer<EnergyFormatter.Unit>?) -> String
func unitString(fromValue value: Double, unit: EnergyFormatter.Unit) -> String
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
protocol Sendable
init?(rawValue: Int)
var hashValue: Int { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func hash(into hasher: inout Hasher)