Consumption

public enum Consumption : Hashable
extension Consumption: CustomStringConvertible

Represents a consumed or remaining amount of fuel or electric energy.

  • Fuel with given volume, e.g., in liters.

    Declaration

    Swift

    case fuel(volume: Measurement<UnitVolume>)
  • Energy with given amount, e.g., in kilowatt hours.

    Declaration

    Swift

    case energy(amount: Measurement<UnitEnergy>)

CustomStringConvertible

  • A textual representation of the Consumption enum.

    Declaration

    Swift

    public var description: String { get }