Consumption
public enum Consumption : Hashable
extension Consumption: CustomStringConvertible
Represents a consumed or remaining amount of fuel or electric energy.
A textual representation of the Consumption
enum.
Declaration
Swift
public var description: String { get }
Energy with given amount
, e.g., in kilowatt hours.
Declaration
Swift
case energy(amount: Measurement<UnitEnergy>)
Fuel with given volume
, e.g., in liters.
Declaration
Swift
case fuel(volume: Measurement<UnitVolume>)