CombustionEngine

public class CombustionEngine

A combustion vehicle engine for route planning and consumption estimation.

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

Public

CombustionEngine

  • Copies the current CombustionEngine with changes specified in build closure

    Declaration

    Swift

    public func copy(build: (inout Builder) -> ()) -> CombustionEngine

    Parameters

    build

    This closure allows for change of CombustionEngine values

    Return Value

    CombustionEngine with the changes set on the closure

  • The Builder creates a new instance of CombustionEngine with modified fields.

    Declaration

    Swift

    public struct Builder