Struct abstio::MapName [−][src]
Expand description
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
Create a MapName from a country code, city, and map name.
Create a MapName from a city and map within that city.
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.
Stringify the map name for filenames.
Transforms a path to a map back to a MapName. Returns None
if the input is strange.
Returns all maps from one city that’re available locally.
Returns all maps from all cities available locally.
Returns all maps from all cities based on the manifest of available files.
Returns all maps from all cities either available locally or based on the manifest of available files.
Returns all maps from one city based on the manifest of available files.
Returns all maps from one city that’re available either locally or according to the manifest.
Returns the string to opt into runtime or input files for DataPacks.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for MapName
impl UnwindSafe for MapName
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more