Struct abstio::MapName [−][src]
A single map is identified using this.
Fields
city: CityName
map: String
The name of the map within the city, in filename-friendly form – for example, “downtown”
Implementations
impl MapName
[src]
impl MapName
[src]pub fn new(country: &str, city: &str, map: &str) -> MapName
[src]
Create a MapName from a country code, city, and map name.
pub fn from_city(city: &CityName, map: &str) -> MapName
[src]
Create a MapName from a city and map within that city.
pub fn seattle(map: &str) -> MapName
[src]
Convenient constructor for the main city of the game.
pub fn describe(&self) -> String
[src]
Stringify the map name for debug messages. Don’t implement std::fmt::Display
, to force
callers to explicitly opt into this description, which could change.
pub fn as_filename(&self) -> String
[src]
Stringify the map name for filenames.
pub fn from_path(path: &str) -> Option<MapName>
[src]
Transforms a path to a map back to a MapName. Returns None
if the input is strange.
pub fn path(&self) -> String
[src]
Returns the filesystem path to this map.
fn list_all_maps_in_city_locally(city: &CityName) -> Vec<MapName>
[src]
Returns all maps from one city that’re available locally.
pub fn list_all_maps_locally() -> Vec<MapName>
[src]
Returns all maps from all cities available locally.
fn list_all_maps_from_manifest(manifest: &Manifest) -> Vec<MapName>
[src]
Returns all maps from all cities based on the manifest of available files.
pub fn list_all_maps_merged(manifest: &Manifest) -> Vec<MapName>
[src]
Returns all maps from all cities either available locally or based on the manifest of available files.
fn list_all_maps_in_city_from_manifest(
city: &CityName,
manifest: &Manifest
) -> Vec<MapName>
[src]
city: &CityName,
manifest: &Manifest
) -> Vec<MapName>
Returns all maps from one city based on the manifest of available files.
pub fn list_all_maps_in_city_merged(
city: &CityName,
manifest: &Manifest
) -> Vec<MapName>
[src]
city: &CityName,
manifest: &Manifest
) -> Vec<MapName>
Returns all maps from one city that’re available either locally or according to the manifest.
pub fn to_data_pack_name(&self) -> String
[src]
Returns the string to opt into runtime or input files for DataPacks.
Trait Implementations
impl<'de> Deserialize<'de> for MapName
[src]
impl<'de> Deserialize<'de> for MapName
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialOrd<MapName> for MapName
[src]
impl PartialOrd<MapName> for MapName
[src]impl Eq for MapName
[src]
impl StructuralEq for MapName
[src]
impl StructuralPartialEq for MapName
[src]
Auto Trait Implementations
impl RefUnwindSafe for MapName
impl Send for MapName
impl Sync for MapName
impl Unpin for MapName
impl UnwindSafe for MapName
Blanket Implementations
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,