Skip to main content

ExtendedRouteType

Enum ExtendedRouteType 

Source
#[repr(i16)]
pub enum ExtendedRouteType {
Show 81 variants Railway = 100, HighSpeedRail = 101, LongDistanceTrains = 102, InterRegionalRail = 103, CarTransportRail = 104, SleeperRail = 105, RegionalRail = 106, TouristRailway = 107, RailShuttleWithinComplex = 108, SuburbanRailway = 109, ReplacementRail = 110, SpecialRail = 111, LorryTransportRail = 112, OtherRail = 113, CrossCountryRail = 114, VehicleTransportRail = 115, RackAndPinionRailway = 116, AdditionalRail = 117, Coach = 200, InternationalCoach = 201, NationalCoach = 202, ShuttleCoach = 203, RegionalCoach = 204, SpecialCoach = 205, SightseeingCoach = 206, TouristCoach = 207, CommuterCoach = 208, OtherCoach = 209, UrbanRailway = 400, Metro = 401, Underground = 402, UrbanRailwayServiceDetail = 403, OtherUrbanRailway = 404, Monorail = 405, Bus = 700, RegionalBus = 701, ExpressBus = 702, StoppingBus = 703, LocalBus = 704, NightBus = 705, PostBus = 706, SpecialNeedsBus = 707, MobilityBus = 708, MobilityBusForRegisteredDisabled = 709, SightseeingBus = 710, ShuttleBus = 711, SchoolBus = 712, SchoolAndPublicServiceBus = 713, RailReplacementBus = 714, DemandAndResponseBus = 715, OtherBus = 716, Trolleybus = 800, Tram = 900, CityTram = 901, LocalTram = 902, RegionalTram = 903, SightseeingTram = 904, ShuttleTram = 905, OtherTram = 906, WaterTransport = 1_000, Air = 1_100, Ferry = 1_200, AerialLift = 1_300, Telecabin = 1_301, CableCar = 1_302, Elevator = 1_303, ChairLift = 1_304, DragLift = 1_305, SmallTelecabin = 1_306, OtherTelecabin = 1_307, Funicular = 1_400, Taxi = 1_500, CommunalTaxi = 1_501, WaterTaxi = 1_502, RailTaxi = 1_503, BikeTaxi = 1_504, LicensedTaxi = 1_505, PrivateHireServiceVehicle = 1_506, OtherTaxi = 1_507, MiscellaneousService = 1_700, HorseDrawnCarriage = 1_702,
}
Expand description

Variants§

§

Railway = 100

Railway Service.

§

HighSpeedRail = 101

High Speed Rail Service. Examples: TGV (FR), ICE (DE), Eurostar (GB).

§

LongDistanceTrains = 102

Long Distance Trains. Examples: InterCity/EuroCity.

§

InterRegionalRail = 103

Inter Regional Rail Service. Examples: InterRegio (DE), Cross County Rail (GB).

§

CarTransportRail = 104

Car Transport Rail Service.

§

SleeperRail = 105

Sleeper Rail Service. Example: GNER Sleeper (GB).

§

RegionalRail = 106

Regional Rail Service. Examples: TER (FR), Regionalzug (DE).

§

TouristRailway = 107

Tourist Railway Service. Example: Romney, Hythe & Dymchurch (GB).

§

RailShuttleWithinComplex = 108

Rail Shuttle (Within Complex). Examples: Gatwick Shuttle (GB), Sky Line (DE).

§

SuburbanRailway = 109

Suburban Railway. Examples: S-Bahn (DE), RER (FR), S-tog (Kopenhagen).

§

ReplacementRail = 110

Replacement Rail Service.

§

SpecialRail = 111

Special Rail Service.

§

LorryTransportRail = 112

Lorry Transport Rail Service.

§

OtherRail = 113

All Rail Services.

§

CrossCountryRail = 114

Cross-Country Rail Service.

§

VehicleTransportRail = 115

Vehicle Transport Rail Service.

§

RackAndPinionRailway = 116

Rack and Pinion Railway. Examples: Rochers de Naye (CH), Dolderbahn (CH).

§

AdditionalRail = 117

Additional Rail Service.

§

Coach = 200

Coach Service.

§

InternationalCoach = 201

International Coach Service. Examples: EuroLine, Touring.

§

NationalCoach = 202

National Coach Service. Example: National Express (GB).

§

ShuttleCoach = 203

Shuttle Coach Service. Examples: Roissy Bus (FR), Reading-Heathrow (GB).

§

RegionalCoach = 204

Regional Coach Service.

§

SpecialCoach = 205

Special Coach Service.

§

SightseeingCoach = 206

Sightseeing Coach Service.

§

TouristCoach = 207

Tourist Coach Service.

§

CommuterCoach = 208

Commuter Coach Service.

§

OtherCoach = 209

All Coach Services.

§

UrbanRailway = 400

Urban Railway Service.

§

Metro = 401

Metro Service. Example: Métro de Paris.

§

Underground = 402

Underground Service. Examples: London Underground, U-Bahn.

§

UrbanRailwayServiceDetail = 403

Urban Railway Service.

§

OtherUrbanRailway = 404

All Urban Railway Services.

§

Monorail = 405

Monorail.

§

Bus = 700

Bus Service.

§

RegionalBus = 701

Regional Bus Service. Example: Eastbourne-Maidstone (GB).

§

ExpressBus = 702

Express Bus Service. Example: X19 Wokingham-Heathrow (GB).

§

StoppingBus = 703

Stopping Bus Service. Example: 38 London: Clapton Pond-Victoria (GB).

§

LocalBus = 704

Local Bus Service.

§

NightBus = 705

Night Bus Service. Example: N prefixed buses in London (GB).

§

PostBus = 706

Post Bus Service. Example: Maidstone P4 (GB).

§

SpecialNeedsBus = 707

Special Needs Bus.

§

MobilityBus = 708

Mobility Bus Service.

§

MobilityBusForRegisteredDisabled = 709

Mobility Bus for Registered Disabled.

§

SightseeingBus = 710

Sightseeing Bus.

§

ShuttleBus = 711

Shuttle Bus. Example: 747 Heathrow-Gatwick Airport Service (GB).

§

SchoolBus = 712

School Bus.

§

SchoolAndPublicServiceBus = 713

School and Public Service Bus.

§

RailReplacementBus = 714

Rail Replacement Bus Service.

§

DemandAndResponseBus = 715

Demand and Response Bus Service.

§

OtherBus = 716

All Bus Services.

§

Trolleybus = 800

Trolleybus Service.

§

Tram = 900

Tram Service.

§

CityTram = 901

City Tram Service.

§

LocalTram = 902

Local Tram Service. Examples: Munich (DE), Brussels (BE), Croydon (GB).

§

RegionalTram = 903

Regional Tram Service.

§

SightseeingTram = 904

Sightseeing Tram Service. Example: Blackpool Seafront (GB).

§

ShuttleTram = 905

Shuttle Tram Service.

§

OtherTram = 906

All Tram Services.

§

WaterTransport = 1_000

Water Transport Service.

§

Air = 1_100

Air Service.

§

Ferry = 1_200

Ferry Service.

§

AerialLift = 1_300

Aerial Lift Service. Examples: Telefèric de Montjuïc (ES), Saleve (CH), Roosevelt Island Tramway (US).

§

Telecabin = 1_301

Telecabin Service.

§

CableCar = 1_302

Cable Car Service.

§

Elevator = 1_303

Elevator Service.

§

ChairLift = 1_304

Chair Lift Service.

§

DragLift = 1_305

Drag Lift Service.

§

SmallTelecabin = 1_306

Small Telecabin Service.

§

OtherTelecabin = 1_307

All Telecabin Services.

§

Funicular = 1_400

Funicular Service. Example: Rigiblick (Zürich, CH).

§

Taxi = 1_500

Taxi Service.

§

CommunalTaxi = 1_501

Communal Taxi Service. Examples: Marshrutka (RU), dolmuş (TR).

§

WaterTaxi = 1_502

Water Taxi Service.

§

RailTaxi = 1_503

Rail Taxi Service.

§

BikeTaxi = 1_504

Bike Taxi Service.

§

LicensedTaxi = 1_505

Licensed Taxi Service.

§

PrivateHireServiceVehicle = 1_506

Private Hire Service Vehicle.

§

OtherTaxi = 1_507

All Taxi Services.

§

MiscellaneousService = 1_700

Miscellaneous Service.

§

HorseDrawnCarriage = 1_702

Horse-drawn Carriage.

Implementations§

Source§

impl ExtendedRouteType

Source

pub fn to_standard_route_type(&self) -> RouteType

Convert extended route types to standard route types if possible. All route types that can not be represented in standard route types at all are kept as-is. This loses precision.

Trait Implementations§

Source§

impl Clone for ExtendedRouteType

Source§

fn clone(&self) -> ExtendedRouteType

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ExtendedRouteType

Source§

impl Debug for ExtendedRouteType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ExtendedRouteType

Source§

impl Hash for ExtendedRouteType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ExtendedRouteType

Source§

fn eq(&self, other: &ExtendedRouteType) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ExtendedRouteType

Source§

impl TryFrom<i16> for ExtendedRouteType

Source§

type Error = TryFromReprError<i16>

The type returned in the event of a conversion error.
Source§

fn try_from(val: i16) -> Result<Self, TryFromReprError<i16>>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more