Consumption
public enum Consumption : Hashable
extension Consumption: CustomStringConvertible
Different types of consumption.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Fuel volume, e.g., liters.
Declaration
Swift
case fuelVolume(Measurement<UnitVolume>)
-
Energy amount, e.g., in kilowatt hours.
Declaration
Swift
case energyAmount(Measurement<UnitEnergy>)
-
A textual representation of the
Consumption
enum.Declaration
Swift
public var description: String { get }