AnyNode

Enum AnyNode 

Source
pub enum AnyNode {
Show 21 variants AirAirline(AirAirline), AirAirport(AirAirport), AirGate(AirGate), AirFlight(AirFlight), BusCompany(BusCompany), BusLine(BusLine), BusStop(BusStop), BusBerth(BusBerth), BusConnection(BusConnection), RailCompany(RailCompany), RailLine(RailLine), RailStation(RailStation), RailPlatform(RailPlatform), RailConnection(RailConnection), SeaCompany(SeaCompany), SeaLine(SeaLine), SeaStop(SeaStop), SeaDock(SeaDock), SeaConnection(SeaConnection), SpawnWarp(SpawnWarp), Town(Town),
}

Variants§

§

AirAirline(AirAirline)

§

AirAirport(AirAirport)

§

AirGate(AirGate)

§

AirFlight(AirFlight)

§

BusCompany(BusCompany)

§

BusLine(BusLine)

§

BusStop(BusStop)

§

BusBerth(BusBerth)

§

BusConnection(BusConnection)

§

RailCompany(RailCompany)

§

RailLine(RailLine)

§

RailStation(RailStation)

§

RailPlatform(RailPlatform)

§

RailConnection(RailConnection)

§

SeaCompany(SeaCompany)

§

SeaLine(SeaLine)

§

SeaStop(SeaStop)

§

SeaDock(SeaDock)

§

SeaConnection(SeaConnection)

§

SpawnWarp(SpawnWarp)

§

Town(Town)

Implementations§

Source§

impl AnyNode

Source

pub const fn is_air_airline(&self) -> bool

Returns true if the enum is AnyNode::AirAirline otherwise false

Source

pub const fn is_air_airport(&self) -> bool

Returns true if the enum is AnyNode::AirAirport otherwise false

Source

pub const fn is_air_gate(&self) -> bool

Returns true if the enum is AnyNode::AirGate otherwise false

Source

pub const fn is_air_flight(&self) -> bool

Returns true if the enum is AnyNode::AirFlight otherwise false

Source

pub const fn is_bus_company(&self) -> bool

Returns true if the enum is AnyNode::BusCompany otherwise false

Source

pub const fn is_bus_line(&self) -> bool

Returns true if the enum is AnyNode::BusLine otherwise false

Source

pub const fn is_bus_stop(&self) -> bool

Returns true if the enum is AnyNode::BusStop otherwise false

Source

pub const fn is_bus_berth(&self) -> bool

Returns true if the enum is AnyNode::BusBerth otherwise false

Source

pub const fn is_bus_connection(&self) -> bool

Returns true if the enum is AnyNode::BusConnection otherwise false

Source

pub const fn is_rail_company(&self) -> bool

Returns true if the enum is AnyNode::RailCompany otherwise false

Source

pub const fn is_rail_line(&self) -> bool

Returns true if the enum is AnyNode::RailLine otherwise false

Source

pub const fn is_rail_station(&self) -> bool

Returns true if the enum is AnyNode::RailStation otherwise false

Source

pub const fn is_rail_platform(&self) -> bool

Returns true if the enum is AnyNode::RailPlatform otherwise false

Source

pub const fn is_rail_connection(&self) -> bool

Returns true if the enum is AnyNode::RailConnection otherwise false

Source

pub const fn is_sea_company(&self) -> bool

Returns true if the enum is AnyNode::SeaCompany otherwise false

Source

pub const fn is_sea_line(&self) -> bool

Returns true if the enum is AnyNode::SeaLine otherwise false

Source

pub const fn is_sea_stop(&self) -> bool

Returns true if the enum is AnyNode::SeaStop otherwise false

Source

pub const fn is_sea_dock(&self) -> bool

Returns true if the enum is AnyNode::SeaDock otherwise false

Source

pub const fn is_sea_connection(&self) -> bool

Returns true if the enum is AnyNode::SeaConnection otherwise false

Source

pub const fn is_spawn_warp(&self) -> bool

Returns true if the enum is AnyNode::SpawnWarp otherwise false

Source

pub const fn is_town(&self) -> bool

Returns true if the enum is AnyNode::Town otherwise false

Source§

impl AnyNode

Source

pub fn try_as_air_airline(self) -> Option<AirAirline>

Source

pub const fn try_as_air_airline_ref(&self) -> Option<&AirAirline>

Source

pub fn try_as_air_airline_mut(&mut self) -> Option<&mut AirAirline>

Source

pub fn try_as_air_airport(self) -> Option<AirAirport>

Source

pub const fn try_as_air_airport_ref(&self) -> Option<&AirAirport>

Source

pub fn try_as_air_airport_mut(&mut self) -> Option<&mut AirAirport>

Source

pub fn try_as_air_gate(self) -> Option<AirGate>

Source

pub const fn try_as_air_gate_ref(&self) -> Option<&AirGate>

Source

pub fn try_as_air_gate_mut(&mut self) -> Option<&mut AirGate>

Source

pub fn try_as_air_flight(self) -> Option<AirFlight>

Source

pub const fn try_as_air_flight_ref(&self) -> Option<&AirFlight>

Source

pub fn try_as_air_flight_mut(&mut self) -> Option<&mut AirFlight>

Source

pub fn try_as_bus_company(self) -> Option<BusCompany>

Source

pub const fn try_as_bus_company_ref(&self) -> Option<&BusCompany>

Source

pub fn try_as_bus_company_mut(&mut self) -> Option<&mut BusCompany>

Source

pub fn try_as_bus_line(self) -> Option<BusLine>

Source

pub const fn try_as_bus_line_ref(&self) -> Option<&BusLine>

Source

pub fn try_as_bus_line_mut(&mut self) -> Option<&mut BusLine>

Source

pub fn try_as_bus_stop(self) -> Option<BusStop>

Source

pub const fn try_as_bus_stop_ref(&self) -> Option<&BusStop>

Source

pub fn try_as_bus_stop_mut(&mut self) -> Option<&mut BusStop>

Source

pub fn try_as_bus_berth(self) -> Option<BusBerth>

Source

pub const fn try_as_bus_berth_ref(&self) -> Option<&BusBerth>

Source

pub fn try_as_bus_berth_mut(&mut self) -> Option<&mut BusBerth>

Source

pub fn try_as_bus_connection(self) -> Option<BusConnection>

Source

pub const fn try_as_bus_connection_ref(&self) -> Option<&BusConnection>

Source

pub fn try_as_bus_connection_mut(&mut self) -> Option<&mut BusConnection>

Source

pub fn try_as_rail_company(self) -> Option<RailCompany>

Source

pub const fn try_as_rail_company_ref(&self) -> Option<&RailCompany>

Source

pub fn try_as_rail_company_mut(&mut self) -> Option<&mut RailCompany>

Source

pub fn try_as_rail_line(self) -> Option<RailLine>

Source

pub const fn try_as_rail_line_ref(&self) -> Option<&RailLine>

Source

pub fn try_as_rail_line_mut(&mut self) -> Option<&mut RailLine>

Source

pub fn try_as_rail_station(self) -> Option<RailStation>

Source

pub const fn try_as_rail_station_ref(&self) -> Option<&RailStation>

Source

pub fn try_as_rail_station_mut(&mut self) -> Option<&mut RailStation>

Source

pub fn try_as_rail_platform(self) -> Option<RailPlatform>

Source

pub const fn try_as_rail_platform_ref(&self) -> Option<&RailPlatform>

Source

pub fn try_as_rail_platform_mut(&mut self) -> Option<&mut RailPlatform>

Source

pub fn try_as_rail_connection(self) -> Option<RailConnection>

Source

pub const fn try_as_rail_connection_ref(&self) -> Option<&RailConnection>

Source

pub fn try_as_rail_connection_mut(&mut self) -> Option<&mut RailConnection>

Source

pub fn try_as_sea_company(self) -> Option<SeaCompany>

Source

pub const fn try_as_sea_company_ref(&self) -> Option<&SeaCompany>

Source

pub fn try_as_sea_company_mut(&mut self) -> Option<&mut SeaCompany>

Source

pub fn try_as_sea_line(self) -> Option<SeaLine>

Source

pub const fn try_as_sea_line_ref(&self) -> Option<&SeaLine>

Source

pub fn try_as_sea_line_mut(&mut self) -> Option<&mut SeaLine>

Source

pub fn try_as_sea_stop(self) -> Option<SeaStop>

Source

pub const fn try_as_sea_stop_ref(&self) -> Option<&SeaStop>

Source

pub fn try_as_sea_stop_mut(&mut self) -> Option<&mut SeaStop>

Source

pub fn try_as_sea_dock(self) -> Option<SeaDock>

Source

pub const fn try_as_sea_dock_ref(&self) -> Option<&SeaDock>

Source

pub fn try_as_sea_dock_mut(&mut self) -> Option<&mut SeaDock>

Source

pub fn try_as_sea_connection(self) -> Option<SeaConnection>

Source

pub const fn try_as_sea_connection_ref(&self) -> Option<&SeaConnection>

Source

pub fn try_as_sea_connection_mut(&mut self) -> Option<&mut SeaConnection>

Source

pub fn try_as_spawn_warp(self) -> Option<SpawnWarp>

Source

pub const fn try_as_spawn_warp_ref(&self) -> Option<&SpawnWarp>

Source

pub fn try_as_spawn_warp_mut(&mut self) -> Option<&mut SpawnWarp>

Source

pub fn try_as_town(self) -> Option<Town>

Source

pub const fn try_as_town_ref(&self) -> Option<&Town>

Source

pub fn try_as_town_mut(&mut self) -> Option<&mut Town>

Source§

impl AnyNode

Source

pub fn from_id(gd: &GD, id: ID) -> Result<Option<Self>>

Trait Implementations§

Source§

impl Clone for AnyNode

Source§

fn clone(&self) -> AnyNode

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for AnyNode

Source§

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

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

impl From<AirAirline> for AnyNode

Source§

fn from(v: AirAirline) -> AnyNode

Converts to this type from the input type.
Source§

impl From<AirAirport> for AnyNode

Source§

fn from(v: AirAirport) -> AnyNode

Converts to this type from the input type.
Source§

impl From<AirFlight> for AnyNode

Source§

fn from(v: AirFlight) -> AnyNode

Converts to this type from the input type.
Source§

impl From<AirGate> for AnyNode

Source§

fn from(v: AirGate) -> AnyNode

Converts to this type from the input type.
Source§

impl From<AnyLocatedNode> for AnyNode

Source§

fn from(value: AnyLocatedNode) -> Self

Converts to this type from the input type.
Source§

impl From<BusBerth> for AnyNode

Source§

fn from(v: BusBerth) -> AnyNode

Converts to this type from the input type.
Source§

impl From<BusCompany> for AnyNode

Source§

fn from(v: BusCompany) -> AnyNode

Converts to this type from the input type.
Source§

impl From<BusConnection> for AnyNode

Source§

fn from(v: BusConnection) -> AnyNode

Converts to this type from the input type.
Source§

impl From<BusLine> for AnyNode

Source§

fn from(v: BusLine) -> AnyNode

Converts to this type from the input type.
Source§

impl From<BusStop> for AnyNode

Source§

fn from(v: BusStop) -> AnyNode

Converts to this type from the input type.
Source§

impl From<RailCompany> for AnyNode

Source§

fn from(v: RailCompany) -> AnyNode

Converts to this type from the input type.
Source§

impl From<RailConnection> for AnyNode

Source§

fn from(v: RailConnection) -> AnyNode

Converts to this type from the input type.
Source§

impl From<RailLine> for AnyNode

Source§

fn from(v: RailLine) -> AnyNode

Converts to this type from the input type.
Source§

impl From<RailPlatform> for AnyNode

Source§

fn from(v: RailPlatform) -> AnyNode

Converts to this type from the input type.
Source§

impl From<RailStation> for AnyNode

Source§

fn from(v: RailStation) -> AnyNode

Converts to this type from the input type.
Source§

impl From<SeaCompany> for AnyNode

Source§

fn from(v: SeaCompany) -> AnyNode

Converts to this type from the input type.
Source§

impl From<SeaConnection> for AnyNode

Source§

fn from(v: SeaConnection) -> AnyNode

Converts to this type from the input type.
Source§

impl From<SeaDock> for AnyNode

Source§

fn from(v: SeaDock) -> AnyNode

Converts to this type from the input type.
Source§

impl From<SeaLine> for AnyNode

Source§

fn from(v: SeaLine) -> AnyNode

Converts to this type from the input type.
Source§

impl From<SeaStop> for AnyNode

Source§

fn from(v: SeaStop) -> AnyNode

Converts to this type from the input type.
Source§

impl From<SpawnWarp> for AnyNode

Source§

fn from(v: SpawnWarp) -> AnyNode

Converts to this type from the input type.
Source§

impl From<Town> for AnyNode

Source§

fn from(v: Town) -> AnyNode

Converts to this type from the input type.
Source§

impl Node for AnyNode

Source§

fn i(self) -> ID

Source§

fn ty(self) -> &'static str

Source§

impl PartialEq for AnyNode

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<AnyNode> for AnyLocatedNode

Source§

type Error = Error

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

fn try_from(value: AnyNode) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryInto<AirAirline> for AnyNode

Source§

type Error = &'static str

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

fn try_into(self) -> Result<AirAirline, <Self as TryInto<AirAirline>>::Error>

Performs the conversion.
Source§

impl TryInto<AirAirport> for AnyNode

Source§

type Error = &'static str

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

fn try_into(self) -> Result<AirAirport, <Self as TryInto<AirAirport>>::Error>

Performs the conversion.
Source§

impl TryInto<AirFlight> for AnyNode

Source§

type Error = &'static str

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

fn try_into(self) -> Result<AirFlight, <Self as TryInto<AirFlight>>::Error>

Performs the conversion.
Source§

impl TryInto<AirGate> for AnyNode

Source§

type Error = &'static str

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

fn try_into(self) -> Result<AirGate, <Self as TryInto<AirGate>>::Error>

Performs the conversion.
Source§

impl TryInto<BusBerth> for AnyNode

Source§

type Error = &'static str

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

fn try_into(self) -> Result<BusBerth, <Self as TryInto<BusBerth>>::Error>

Performs the conversion.
Source§

impl TryInto<BusCompany> for AnyNode

Source§

type Error = &'static str

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

fn try_into(self) -> Result<BusCompany, <Self as TryInto<BusCompany>>::Error>

Performs the conversion.
Source§

impl TryInto<BusConnection> for AnyNode

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<BusConnection, <Self as TryInto<BusConnection>>::Error>

Performs the conversion.
Source§

impl TryInto<BusLine> for AnyNode

Source§

type Error = &'static str

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

fn try_into(self) -> Result<BusLine, <Self as TryInto<BusLine>>::Error>

Performs the conversion.
Source§

impl TryInto<BusStop> for AnyNode

Source§

type Error = &'static str

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

fn try_into(self) -> Result<BusStop, <Self as TryInto<BusStop>>::Error>

Performs the conversion.
Source§

impl TryInto<RailCompany> for AnyNode

Source§

type Error = &'static str

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

fn try_into(self) -> Result<RailCompany, <Self as TryInto<RailCompany>>::Error>

Performs the conversion.
Source§

impl TryInto<RailConnection> for AnyNode

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<RailConnection, <Self as TryInto<RailConnection>>::Error>

Performs the conversion.
Source§

impl TryInto<RailLine> for AnyNode

Source§

type Error = &'static str

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

fn try_into(self) -> Result<RailLine, <Self as TryInto<RailLine>>::Error>

Performs the conversion.
Source§

impl TryInto<RailPlatform> for AnyNode

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<RailPlatform, <Self as TryInto<RailPlatform>>::Error>

Performs the conversion.
Source§

impl TryInto<RailStation> for AnyNode

Source§

type Error = &'static str

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

fn try_into(self) -> Result<RailStation, <Self as TryInto<RailStation>>::Error>

Performs the conversion.
Source§

impl TryInto<SeaCompany> for AnyNode

Source§

type Error = &'static str

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

fn try_into(self) -> Result<SeaCompany, <Self as TryInto<SeaCompany>>::Error>

Performs the conversion.
Source§

impl TryInto<SeaConnection> for AnyNode

Source§

type Error = &'static str

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

fn try_into( self, ) -> Result<SeaConnection, <Self as TryInto<SeaConnection>>::Error>

Performs the conversion.
Source§

impl TryInto<SeaDock> for AnyNode

Source§

type Error = &'static str

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

fn try_into(self) -> Result<SeaDock, <Self as TryInto<SeaDock>>::Error>

Performs the conversion.
Source§

impl TryInto<SeaLine> for AnyNode

Source§

type Error = &'static str

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

fn try_into(self) -> Result<SeaLine, <Self as TryInto<SeaLine>>::Error>

Performs the conversion.
Source§

impl TryInto<SeaStop> for AnyNode

Source§

type Error = &'static str

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

fn try_into(self) -> Result<SeaStop, <Self as TryInto<SeaStop>>::Error>

Performs the conversion.
Source§

impl TryInto<SpawnWarp> for AnyNode

Source§

type Error = &'static str

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

fn try_into(self) -> Result<SpawnWarp, <Self as TryInto<SpawnWarp>>::Error>

Performs the conversion.
Source§

impl TryInto<Town> for AnyNode

Source§

type Error = &'static str

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

fn try_into(self) -> Result<Town, <Self as TryInto<Town>>::Error>

Performs the conversion.
Source§

impl Copy for AnyNode

Source§

impl Eq for AnyNode

Source§

impl StructuralPartialEq for AnyNode

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
§

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

§

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

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> 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.