BorderCrossing

public struct BorderCrossing

Indicates a border crossing between two countries.

  • Creates an instance with the specified countries which border crossed.

    Declaration

    Swift

    public init(fromCountry: Country, toCountry: Country) throws

    Parameters

    fromCountry

    Information about the country the vehicle is leaving.

    toCountry

    Information about the country the vehicle is entering.

  • Country information of the country the vehicle is leaving.

    Declaration

    Swift

    public let fromCountry: Country
  • Country information of the country the vehicle is entering.

    Declaration

    Swift

    public let toCountry: Country
  • An error that occurs during the creation of the instance.

    See more

    Declaration

    Swift

    public enum InitializationError : Error