pub enum AnyLocatedNode {
AirAirport(AirAirport),
BusStop(BusStop),
RailStation(RailStation),
SeaStop(SeaStop),
SpawnWarp(SpawnWarp),
Town(Town),
}Variants§
AirAirport(AirAirport)
BusStop(BusStop)
RailStation(RailStation)
SeaStop(SeaStop)
SpawnWarp(SpawnWarp)
Town(Town)
Implementations§
Source§impl AnyLocatedNode
impl AnyLocatedNode
Sourcepub const fn is_air_airport(&self) -> bool
pub const fn is_air_airport(&self) -> bool
Returns true if the enum is AnyLocatedNode::AirAirport otherwise false
Sourcepub const fn is_bus_stop(&self) -> bool
pub const fn is_bus_stop(&self) -> bool
Returns true if the enum is AnyLocatedNode::BusStop otherwise false
Sourcepub const fn is_rail_station(&self) -> bool
pub const fn is_rail_station(&self) -> bool
Returns true if the enum is AnyLocatedNode::RailStation otherwise false
Sourcepub const fn is_sea_stop(&self) -> bool
pub const fn is_sea_stop(&self) -> bool
Returns true if the enum is AnyLocatedNode::SeaStop otherwise false
Sourcepub const fn is_spawn_warp(&self) -> bool
pub const fn is_spawn_warp(&self) -> bool
Returns true if the enum is AnyLocatedNode::SpawnWarp otherwise false
Source§impl AnyLocatedNode
impl AnyLocatedNode
pub fn try_as_air_airport(self) -> Option<AirAirport>
pub const fn try_as_air_airport_ref(&self) -> Option<&AirAirport>
pub fn try_as_air_airport_mut(&mut self) -> Option<&mut AirAirport>
pub fn try_as_bus_stop(self) -> Option<BusStop>
pub const fn try_as_bus_stop_ref(&self) -> Option<&BusStop>
pub fn try_as_bus_stop_mut(&mut self) -> Option<&mut BusStop>
pub fn try_as_rail_station(self) -> Option<RailStation>
pub const fn try_as_rail_station_ref(&self) -> Option<&RailStation>
pub fn try_as_rail_station_mut(&mut self) -> Option<&mut RailStation>
pub fn try_as_sea_stop(self) -> Option<SeaStop>
pub const fn try_as_sea_stop_ref(&self) -> Option<&SeaStop>
pub fn try_as_sea_stop_mut(&mut self) -> Option<&mut SeaStop>
pub fn try_as_spawn_warp(self) -> Option<SpawnWarp>
pub const fn try_as_spawn_warp_ref(&self) -> Option<&SpawnWarp>
pub fn try_as_spawn_warp_mut(&mut self) -> Option<&mut SpawnWarp>
pub fn try_as_town(self) -> Option<Town>
pub const fn try_as_town_ref(&self) -> Option<&Town>
pub fn try_as_town_mut(&mut self) -> Option<&mut Town>
Trait Implementations§
Source§impl Clone for AnyLocatedNode
impl Clone for AnyLocatedNode
Source§fn clone(&self) -> AnyLocatedNode
fn clone(&self) -> AnyLocatedNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnyLocatedNode
impl Debug for AnyLocatedNode
Source§impl From<AirAirport> for AnyLocatedNode
impl From<AirAirport> for AnyLocatedNode
Source§fn from(v: AirAirport) -> AnyLocatedNode
fn from(v: AirAirport) -> AnyLocatedNode
Converts to this type from the input type.
Source§impl From<AnyLocatedNode> for AnyNode
impl From<AnyLocatedNode> for AnyNode
Source§fn from(value: AnyLocatedNode) -> Self
fn from(value: AnyLocatedNode) -> Self
Converts to this type from the input type.
Source§impl From<BusStop> for AnyLocatedNode
impl From<BusStop> for AnyLocatedNode
Source§fn from(v: BusStop) -> AnyLocatedNode
fn from(v: BusStop) -> AnyLocatedNode
Converts to this type from the input type.
Source§impl From<RailStation> for AnyLocatedNode
impl From<RailStation> for AnyLocatedNode
Source§fn from(v: RailStation) -> AnyLocatedNode
fn from(v: RailStation) -> AnyLocatedNode
Converts to this type from the input type.
Source§impl From<SeaStop> for AnyLocatedNode
impl From<SeaStop> for AnyLocatedNode
Source§fn from(v: SeaStop) -> AnyLocatedNode
fn from(v: SeaStop) -> AnyLocatedNode
Converts to this type from the input type.
Source§impl From<SpawnWarp> for AnyLocatedNode
impl From<SpawnWarp> for AnyLocatedNode
Source§fn from(v: SpawnWarp) -> AnyLocatedNode
fn from(v: SpawnWarp) -> AnyLocatedNode
Converts to this type from the input type.
Source§impl From<Town> for AnyLocatedNode
impl From<Town> for AnyLocatedNode
Source§fn from(v: Town) -> AnyLocatedNode
fn from(v: Town) -> AnyLocatedNode
Converts to this type from the input type.
Source§impl LocatedNode for AnyLocatedNode
impl LocatedNode for AnyLocatedNode
Source§impl PartialEq for AnyLocatedNode
impl PartialEq for AnyLocatedNode
Source§impl TryFrom<AnyNode> for AnyLocatedNode
impl TryFrom<AnyNode> for AnyLocatedNode
Source§impl TryInto<AirAirport> for AnyLocatedNode
impl TryInto<AirAirport> for AnyLocatedNode
Source§impl TryInto<BusStop> for AnyLocatedNode
impl TryInto<BusStop> for AnyLocatedNode
Source§impl TryInto<RailStation> for AnyLocatedNode
impl TryInto<RailStation> for AnyLocatedNode
Source§impl TryInto<SeaStop> for AnyLocatedNode
impl TryInto<SeaStop> for AnyLocatedNode
Source§impl TryInto<SpawnWarp> for AnyLocatedNode
impl TryInto<SpawnWarp> for AnyLocatedNode
Source§impl TryInto<Town> for AnyLocatedNode
impl TryInto<Town> for AnyLocatedNode
impl Copy for AnyLocatedNode
impl Eq for AnyLocatedNode
impl StructuralPartialEq for AnyLocatedNode
Auto Trait Implementations§
impl Freeze for AnyLocatedNode
impl RefUnwindSafe for AnyLocatedNode
impl Send for AnyLocatedNode
impl Sync for AnyLocatedNode
impl Unpin for AnyLocatedNode
impl UnwindSafe for AnyLocatedNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more