diff --git a/rustdoc/abstio/abst_data/index.html b/rustdoc/abstio/abst_data/index.html index 26abf2b4bf..8dbf249c5e 100644 --- a/rustdoc/abstio/abst_data/index.html +++ b/rustdoc/abstio/abst_data/index.html @@ -1,7 +1,7 @@ abstio::abst_data - Rust

[][src]Module abstio::abst_data

Structs

+ Change settings

[][src]Module abstio::abst_data

Structs

DataPacks

Player-chosen groups of files to opt into downloading

Entry

A single file

Manifest

A list of all canonical data files for A/B Street that're uploaded somewhere. The file formats diff --git a/rustdoc/abstio/abst_data/struct.DataPacks.html b/rustdoc/abstio/abst_data/struct.DataPacks.html index 37c440784a..3b1f29efb1 100644 --- a/rustdoc/abstio/abst_data/struct.DataPacks.html +++ b/rustdoc/abstio/abst_data/struct.DataPacks.html @@ -1,16 +1,17 @@ abstio::abst_data::DataPacks - Rust

[][src]Struct abstio::abst_data::DataPacks

pub struct DataPacks {
+                Change settings

[][src]Struct abstio::abst_data::DataPacks

pub struct DataPacks {
     pub runtime: BTreeSet<String>,
     pub input: BTreeSet<String>,
 }

Player-chosen groups of files to opt into downloading

- Fields

runtime: BTreeSet<String>

A list of cities to download for using in A/B Street.

+ Fieldsruntime: BTreeSet<String>

A list of cities to download for using in A/B Street. Expressed the same as +CityName::to_path, like "gb/london".

input: BTreeSet<String>

A list of cities to download for running the map importer.

-

Implementations

impl DataPacks[src]

pub fn load_or_create() -> DataPacks[src]

Load the player's config for what files to download, or create the config.

-

Trait Implementations

impl<'de> Deserialize<'de> for DataPacks[src]

impl Serialize for DataPacks[src]

Implementations

impl DataPacks[src]

pub fn load_or_create() -> DataPacks[src]

Load the player's config for what files to download, or create the config.

+

Trait Implementations

impl<'de> Deserialize<'de> for DataPacks[src]

impl Serialize for DataPacks[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

Fields

entries: BTreeMap<String, Entry>

Keyed by path, starting with "data/"

-

Implementations

impl Manifest[src]

pub fn load() -> Manifest[src]

pub fn filter(self, data_packs: DataPacks) -> Manifest[src]

Removes entries from the Manifest to match the DataPacks that should exist locally.

+

Implementations

impl Manifest[src]

pub fn load() -> Manifest[src]

pub fn filter(self, data_packs: DataPacks) -> Manifest[src]

Removes entries from the Manifest to match the DataPacks that should exist locally.

Trait Implementations

impl<'de> Deserialize<'de> for Manifest[src]

impl Serialize for Manifest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

[][src]Function abstio::abst_paths::path

pub fn path<I: Into<String>>(p: I) -> String
\ No newline at end of file diff --git a/rustdoc/abstio/abst_paths/fn.path_all_edits.html b/rustdoc/abstio/abst_paths/fn.path_all_edits.html index a6bb7c2578..828d40b632 100644 --- a/rustdoc/abstio/abst_paths/fn.path_all_edits.html +++ b/rustdoc/abstio/abst_paths/fn.path_all_edits.html @@ -1,4 +1,4 @@ abstio::abst_paths::path_all_edits - Rust

[][src]Function abstio::abst_paths::path_all_edits

pub fn path_all_edits(name: &MapName) -> String
\ No newline at end of file + Change settings

[][src]Function abstio::abst_paths::path_all_edits

pub fn path_all_edits(name: &MapName) -> String
\ No newline at end of file diff --git a/rustdoc/abstio/abst_paths/fn.path_all_saves.html b/rustdoc/abstio/abst_paths/fn.path_all_saves.html index 6613ff5456..a47ec3941a 100644 --- a/rustdoc/abstio/abst_paths/fn.path_all_saves.html +++ b/rustdoc/abstio/abst_paths/fn.path_all_saves.html @@ -1,4 +1,4 @@ abstio::abst_paths::path_all_saves - Rust

[][src]Function abstio::abst_paths::path_all_saves

pub fn path_all_saves(
    name: &MapName,
    edits_name: &str,
    run_name: &str
) -> String
\ No newline at end of file + Change settings

[][src]Function abstio::abst_paths::path_all_saves

pub fn path_all_saves(
    name: &MapName,
    edits_name: &str,
    run_name: &str
) -> String
\ No newline at end of file diff --git a/rustdoc/abstio/abst_paths/fn.path_all_scenarios.html b/rustdoc/abstio/abst_paths/fn.path_all_scenarios.html index a6295f04e2..3bda7e1a17 100644 --- a/rustdoc/abstio/abst_paths/fn.path_all_scenarios.html +++ b/rustdoc/abstio/abst_paths/fn.path_all_scenarios.html @@ -1,4 +1,4 @@ abstio::abst_paths::path_all_scenarios - Rust

[][src]Function abstio::abst_paths::path_all_scenarios

pub fn path_all_scenarios(name: &MapName) -> String
\ No newline at end of file + Change settings

[][src]Function abstio::abst_paths::path_all_scenarios

pub fn path_all_scenarios(name: &MapName) -> String
\ No newline at end of file diff --git a/rustdoc/abstio/abst_paths/fn.path_camera_state.html b/rustdoc/abstio/abst_paths/fn.path_camera_state.html index f3d0ad062d..650920c678 100644 --- a/rustdoc/abstio/abst_paths/fn.path_camera_state.html +++ b/rustdoc/abstio/abst_paths/fn.path_camera_state.html @@ -1,4 +1,4 @@ abstio::abst_paths::path_camera_state - Rust

[][src]Function abstio::abst_paths::path_camera_state

pub fn path_camera_state(name: &MapName) -> String
\ No newline at end of file + Change settings

[][src]Function abstio::abst_paths::path_camera_state

pub fn path_camera_state(name: &MapName) -> String
\ No newline at end of file diff --git a/rustdoc/abstio/abst_paths/fn.path_edits.html b/rustdoc/abstio/abst_paths/fn.path_edits.html index 5d30e5d432..59083d5696 100644 --- a/rustdoc/abstio/abst_paths/fn.path_edits.html +++ b/rustdoc/abstio/abst_paths/fn.path_edits.html @@ -1,4 +1,4 @@ abstio::abst_paths::path_edits - Rust

[][src]Function abstio::abst_paths::path_edits

pub fn path_edits(name: &MapName, edits_name: &str) -> String
\ No newline at end of file + Change settings

[][src]Function abstio::abst_paths::path_edits

pub fn path_edits(name: &MapName, edits_name: &str) -> String
\ No newline at end of file diff --git a/rustdoc/abstio/abst_paths/fn.path_player.html b/rustdoc/abstio/abst_paths/fn.path_player.html index c8b87cc104..b379c365ec 100644 --- a/rustdoc/abstio/abst_paths/fn.path_player.html +++ b/rustdoc/abstio/abst_paths/fn.path_player.html @@ -1,4 +1,4 @@ abstio::abst_paths::path_player - Rust

[][src]Function abstio::abst_paths::path_player

pub fn path_player<I: Into<String>>(p: I) -> String
\ No newline at end of file + Change settings

[][src]Function abstio::abst_paths::path_player

pub fn path_player<I: Into<String>>(p: I) -> String
\ No newline at end of file diff --git a/rustdoc/abstio/abst_paths/fn.path_popdat.html b/rustdoc/abstio/abst_paths/fn.path_popdat.html index 2f98b00ebe..d1c9b997b1 100644 --- a/rustdoc/abstio/abst_paths/fn.path_popdat.html +++ b/rustdoc/abstio/abst_paths/fn.path_popdat.html @@ -1,4 +1,4 @@ abstio::abst_paths::path_popdat - Rust

[][src]Function abstio::abst_paths::path_popdat

pub fn path_popdat() -> String
\ No newline at end of file + Change settings

[][src]Function abstio::abst_paths::path_popdat

pub fn path_popdat() -> String
\ No newline at end of file diff --git a/rustdoc/abstio/abst_paths/fn.path_prebaked_results.html b/rustdoc/abstio/abst_paths/fn.path_prebaked_results.html index dc3aaa9e82..6a267a42ab 100644 --- a/rustdoc/abstio/abst_paths/fn.path_prebaked_results.html +++ b/rustdoc/abstio/abst_paths/fn.path_prebaked_results.html @@ -1,4 +1,4 @@ abstio::abst_paths::path_prebaked_results - Rust

[][src]Function abstio::abst_paths::path_prebaked_results

pub fn path_prebaked_results(name: &MapName, scenario_name: &str) -> String
\ No newline at end of file + Change settings

[][src]Function abstio::abst_paths::path_prebaked_results

pub fn path_prebaked_results(name: &MapName, scenario_name: &str) -> String
\ No newline at end of file diff --git a/rustdoc/abstio/abst_paths/fn.path_raw_map.html b/rustdoc/abstio/abst_paths/fn.path_raw_map.html index 6d1d4290a5..6056792cf0 100644 --- a/rustdoc/abstio/abst_paths/fn.path_raw_map.html +++ b/rustdoc/abstio/abst_paths/fn.path_raw_map.html @@ -1,4 +1,4 @@ abstio::abst_paths::path_raw_map - Rust

[][src]Function abstio::abst_paths::path_raw_map

pub fn path_raw_map(name: &MapName) -> String
\ No newline at end of file + Change settings

[][src]Function abstio::abst_paths::path_raw_map

pub fn path_raw_map(name: &MapName) -> String
\ No newline at end of file diff --git a/rustdoc/abstio/abst_paths/fn.path_save.html b/rustdoc/abstio/abst_paths/fn.path_save.html index 134cd78ed1..703b3a0689 100644 --- a/rustdoc/abstio/abst_paths/fn.path_save.html +++ b/rustdoc/abstio/abst_paths/fn.path_save.html @@ -1,4 +1,4 @@ abstio::abst_paths::path_save - Rust

[][src]Function abstio::abst_paths::path_save

pub fn path_save(
    name: &MapName,
    edits_name: &str,
    run_name: &str,
    time: String
) -> String
\ No newline at end of file + Change settings

[][src]Function abstio::abst_paths::path_save

pub fn path_save(
    name: &MapName,
    edits_name: &str,
    run_name: &str,
    time: String
) -> String
\ No newline at end of file diff --git a/rustdoc/abstio/abst_paths/fn.path_scenario.html b/rustdoc/abstio/abst_paths/fn.path_scenario.html index f290b5f95f..1b54e0e777 100644 --- a/rustdoc/abstio/abst_paths/fn.path_scenario.html +++ b/rustdoc/abstio/abst_paths/fn.path_scenario.html @@ -1,4 +1,4 @@ abstio::abst_paths::path_scenario - Rust

[][src]Function abstio::abst_paths::path_scenario

pub fn path_scenario(name: &MapName, scenario_name: &str) -> String
\ No newline at end of file + Change settings

[][src]Function abstio::abst_paths::path_scenario

pub fn path_scenario(name: &MapName, scenario_name: &str) -> String
\ No newline at end of file diff --git a/rustdoc/abstio/abst_paths/index.html b/rustdoc/abstio/abst_paths/index.html index 24b35ec901..7814383b07 100644 --- a/rustdoc/abstio/abst_paths/index.html +++ b/rustdoc/abstio/abst_paths/index.html @@ -1,10 +1,10 @@ abstio::abst_paths - Rust

[][src]Module abstio::abst_paths

Generate paths for different A/B Street files

+ Change settings

[][src]Module abstio::abst_paths

Generate paths for different A/B Street files

Structs

-
MapName

A single map is identified using this. Using a struct makes refactoring later easier, to -organize cities hierarchially.

+
CityName

A single city is identified using this.

+
MapName

A single map is identified using this.

ROOT_DIR
ROOT_PLAYER_DIR

Functions

parse_scenario_path

Extract the map and scenario name from a path. Crashes if the input is strange.

path
path_all_edits
path_all_saves
path_all_scenarios
path_camera_state
path_edits
path_player
path_popdat
path_prebaked_results
path_raw_map
path_save
path_scenario
\ No newline at end of file diff --git a/rustdoc/abstio/abst_paths/sidebar-items.js b/rustdoc/abstio/abst_paths/sidebar-items.js index b7ecbcab06..ae39f5ed0f 100644 --- a/rustdoc/abstio/abst_paths/sidebar-items.js +++ b/rustdoc/abstio/abst_paths/sidebar-items.js @@ -1 +1 @@ -initSidebarItems({"fn":[["parse_scenario_path","Extract the map and scenario name from a path. Crashes if the input is strange."],["path",""],["path_all_edits",""],["path_all_saves",""],["path_all_scenarios",""],["path_camera_state",""],["path_edits",""],["path_player",""],["path_popdat",""],["path_prebaked_results",""],["path_raw_map",""],["path_save",""],["path_scenario",""]],"struct":[["MapName","A single map is identified using this. Using a struct makes refactoring later easier, to organize cities hierarchially."],["ROOT_DIR",""],["ROOT_PLAYER_DIR",""]]}); \ No newline at end of file +initSidebarItems({"fn":[["parse_scenario_path","Extract the map and scenario name from a path. Crashes if the input is strange."],["path",""],["path_all_edits",""],["path_all_saves",""],["path_all_scenarios",""],["path_camera_state",""],["path_edits",""],["path_player",""],["path_popdat",""],["path_prebaked_results",""],["path_raw_map",""],["path_save",""],["path_scenario",""]],"struct":[["CityName","A single city is identified using this."],["MapName","A single map is identified using this."],["ROOT_DIR",""],["ROOT_PLAYER_DIR",""]]}); \ No newline at end of file diff --git a/rustdoc/abstio/abst_paths/struct.CityName.html b/rustdoc/abstio/abst_paths/struct.CityName.html new file mode 100644 index 0000000000..f09cbfb1f3 --- /dev/null +++ b/rustdoc/abstio/abst_paths/struct.CityName.html @@ -0,0 +1,51 @@ +abstio::abst_paths::CityName - Rust + +

[][src]Struct abstio::abst_paths::CityName

pub struct CityName {
+    pub country: String,
+    pub city: String,
+}

A single city is identified using this.

+

+ Fields

country: String

A two letter lowercase country code, from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2. +To represent imaginary/test cities, use the code zz.

+
city: String

The name of the city, in filename-friendly form -- for example, "tel_aviv".

+

Implementations

impl CityName[src]

pub fn new(country: &str, city: &str) -> CityName[src]

Create a CityName from a country code and city.

+

pub fn list_all_cities_from_system_data() -> Vec<CityName>[src]

Returns all city names based on system data.

+

pub fn list_all_cities_from_importer_config() -> Vec<CityName>[src]

Returns all city names based on importer config.

+

pub fn parse(x: &str) -> Result<CityName>[src]

Parses a CityName from something like "gb/london"; the inverse of to_path.

+

pub fn to_path(&self) -> String[src]

Expresses the city as a path, like "gb/london"; the inverse of parse.

+

pub fn describe(&self) -> String[src]

Stringify the city name for debug messages. Don't implement std::fmt::Display, to force +callers to explicitly opt into this description, which could change.

+

Trait Implementations

impl Clone for CityName[src]

impl Debug for CityName[src]

impl<'de> Deserialize<'de> for CityName[src]

impl Eq for CityName[src]

impl Ord for CityName[src]

impl PartialEq<CityName> for CityName[src]

impl PartialOrd<CityName> for CityName[src]

impl Serialize for CityName[src]

impl StructuralEq for CityName[src]

impl StructuralPartialEq for CityName[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

+

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

+

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

+
\ No newline at end of file diff --git a/rustdoc/abstio/abst_paths/struct.MapName.html b/rustdoc/abstio/abst_paths/struct.MapName.html index 7dd019f4a3..2fd7ccd3f9 100644 --- a/rustdoc/abstio/abst_paths/struct.MapName.html +++ b/rustdoc/abstio/abst_paths/struct.MapName.html @@ -1,45 +1,42 @@ abstio::abst_paths::MapName - Rust -

[][src]Struct abstio::abst_paths::MapName

pub struct MapName {
-    pub city: String,
+

[][src]Struct abstio::abst_paths::MapName

pub struct MapName {
+    pub city: CityName,
     pub map: String,
-}

A single map is identified using this. Using a struct makes refactoring later easier, to -organize cities hierarchially.

+}

A single map is identified using this.

- Fields

city: String

The name of the city, in filename-friendly form -- for example, "tel_aviv". In the future, -this field may change to express more geographic hierarchy.

-
map: String

The name of the map within the city, in filename-friendly form -- for example, "downtown"

-

Implementations

impl MapName[src]

pub fn new(city: &str, map: &str) -> MapName[src]

Create a MapName from a simple city and map name.

-

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 + Fieldscity: CityNamemap: String

The name of the map within the city, in filename-friendly form -- for example, "downtown"

+

Implementations

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.

-

pub fn list_all_cities() -> Vec<String>[src]

Returns all city names.

-

pub fn list_all_maps_in_city(city: &str) -> Vec<MapName>[src]

Returns all maps from one city.

-

pub fn list_all_maps() -> Vec<MapName>[src]

Returns all maps from all cities.

-

Trait Implementations

impl Clone for MapName[src]

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.

+

pub fn list_all_maps_in_city(city: &CityName) -> Vec<MapName>[src]

Returns all maps from one city.

+

pub fn list_all_maps() -> Vec<MapName>[src]

Returns all maps from all cities, using system data.

+

Trait Implementations

impl Clone for MapName[src]

impl Debug for MapName[src]

impl<'de> Deserialize<'de> for MapName[src]

impl Eq for MapName[src]

impl Ord for MapName[src]

impl Debug for MapName[src]

impl<'de> Deserialize<'de> for MapName[src]

impl Eq for MapName[src]

impl Ord for MapName[src]

impl PartialEq<MapName> for MapName[src]

impl PartialEq<MapName> for MapName[src]

impl PartialOrd<MapName> for MapName[src]

impl PartialOrd<MapName> for MapName[src]

impl Serialize for MapName[src]

impl StructuralEq for MapName[src]

impl StructuralPartialEq for MapName[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl Serialize for MapName[src]

impl StructuralEq for MapName[src]

impl StructuralPartialEq for MapName[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

Trait Implementations

impl Deref for ROOT_DIR[src]

type Target = String

The resulting type after dereferencing.

-

impl LazyStatic for ROOT_DIR[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

Trait Implementations

impl Deref for ROOT_DIR[src]

type Target = String

The resulting type after dereferencing.

+

impl LazyStatic for ROOT_DIR[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

Trait Implementations

impl Deref for ROOT_PLAYER_DIR[src]

type Target = String

The resulting type after dereferencing.

-

impl LazyStatic for ROOT_PLAYER_DIR[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

Trait Implementations

impl Deref for ROOT_PLAYER_DIR[src]

type Target = String

The resulting type after dereferencing.

+

impl LazyStatic for ROOT_PLAYER_DIR[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

\ No newline at end of file diff --git a/rustdoc/abstio/fn.parse_scenario_path.html b/rustdoc/abstio/fn.parse_scenario_path.html index 384a001001..70fc4b7b26 100644 --- a/rustdoc/abstio/fn.parse_scenario_path.html +++ b/rustdoc/abstio/fn.parse_scenario_path.html @@ -1,5 +1,5 @@ abstio::parse_scenario_path - Rust

[][src]Function abstio::parse_scenario_path

pub fn parse_scenario_path(path: &str) -> (MapName, String)

Extract the map and scenario name from a path. Crashes if the input is strange.

+ Change settings

[][src]Function abstio::parse_scenario_path

pub fn parse_scenario_path(path: &str) -> (MapName, String)

Extract the map and scenario name from a path. Crashes if the input is strange.

\ No newline at end of file diff --git a/rustdoc/abstio/fn.path.html b/rustdoc/abstio/fn.path.html index ffc0a3080a..3da562b36a 100644 --- a/rustdoc/abstio/fn.path.html +++ b/rustdoc/abstio/fn.path.html @@ -1,4 +1,4 @@ abstio::path - Rust

[][src]Function abstio::path

pub fn path<I: Into<String>>(p: I) -> String
\ No newline at end of file + Change settings

[][src]Function abstio::path

pub fn path<I: Into<String>>(p: I) -> String
\ No newline at end of file diff --git a/rustdoc/abstio/fn.path_all_edits.html b/rustdoc/abstio/fn.path_all_edits.html index e34dfa2048..1bb36e8510 100644 --- a/rustdoc/abstio/fn.path_all_edits.html +++ b/rustdoc/abstio/fn.path_all_edits.html @@ -1,4 +1,4 @@ abstio::path_all_edits - Rust

[][src]Function abstio::path_all_edits

pub fn path_all_edits(name: &MapName) -> String
\ No newline at end of file + Change settings

[][src]Function abstio::path_all_edits

pub fn path_all_edits(name: &MapName) -> String
\ No newline at end of file diff --git a/rustdoc/abstio/fn.path_all_saves.html b/rustdoc/abstio/fn.path_all_saves.html index f5c49d5fd5..93e84d2984 100644 --- a/rustdoc/abstio/fn.path_all_saves.html +++ b/rustdoc/abstio/fn.path_all_saves.html @@ -1,4 +1,4 @@ abstio::path_all_saves - Rust

[][src]Function abstio::path_all_saves

pub fn path_all_saves(
    name: &MapName,
    edits_name: &str,
    run_name: &str
) -> String
\ No newline at end of file + Change settings

[][src]Function abstio::path_all_saves

pub fn path_all_saves(
    name: &MapName,
    edits_name: &str,
    run_name: &str
) -> String
\ No newline at end of file diff --git a/rustdoc/abstio/fn.path_all_scenarios.html b/rustdoc/abstio/fn.path_all_scenarios.html index 9b1071c623..697aa63d3f 100644 --- a/rustdoc/abstio/fn.path_all_scenarios.html +++ b/rustdoc/abstio/fn.path_all_scenarios.html @@ -1,4 +1,4 @@ abstio::path_all_scenarios - Rust

[][src]Function abstio::path_all_scenarios

pub fn path_all_scenarios(name: &MapName) -> String
\ No newline at end of file + Change settings

[][src]Function abstio::path_all_scenarios

pub fn path_all_scenarios(name: &MapName) -> String
\ No newline at end of file diff --git a/rustdoc/abstio/fn.path_camera_state.html b/rustdoc/abstio/fn.path_camera_state.html index d6e3fd58ba..e85bb2fa6b 100644 --- a/rustdoc/abstio/fn.path_camera_state.html +++ b/rustdoc/abstio/fn.path_camera_state.html @@ -1,4 +1,4 @@ abstio::path_camera_state - Rust

[][src]Function abstio::path_camera_state

pub fn path_camera_state(name: &MapName) -> String
\ No newline at end of file + Change settings

[][src]Function abstio::path_camera_state

pub fn path_camera_state(name: &MapName) -> String
\ No newline at end of file diff --git a/rustdoc/abstio/fn.path_edits.html b/rustdoc/abstio/fn.path_edits.html index 906769475a..ba95f0c8d2 100644 --- a/rustdoc/abstio/fn.path_edits.html +++ b/rustdoc/abstio/fn.path_edits.html @@ -1,4 +1,4 @@ abstio::path_edits - Rust

[][src]Function abstio::path_edits

pub fn path_edits(name: &MapName, edits_name: &str) -> String
\ No newline at end of file + Change settings

[][src]Function abstio::path_edits

pub fn path_edits(name: &MapName, edits_name: &str) -> String
\ No newline at end of file diff --git a/rustdoc/abstio/fn.path_player.html b/rustdoc/abstio/fn.path_player.html index d220f365db..b68526e80e 100644 --- a/rustdoc/abstio/fn.path_player.html +++ b/rustdoc/abstio/fn.path_player.html @@ -1,4 +1,4 @@ abstio::path_player - Rust

[][src]Function abstio::path_player

pub fn path_player<I: Into<String>>(p: I) -> String
\ No newline at end of file + Change settings

[][src]Function abstio::path_player

pub fn path_player<I: Into<String>>(p: I) -> String
\ No newline at end of file diff --git a/rustdoc/abstio/fn.path_popdat.html b/rustdoc/abstio/fn.path_popdat.html index 41969e88ef..0e7fc271ca 100644 --- a/rustdoc/abstio/fn.path_popdat.html +++ b/rustdoc/abstio/fn.path_popdat.html @@ -1,4 +1,4 @@ abstio::path_popdat - Rust

[][src]Function abstio::path_popdat

pub fn path_popdat() -> String
\ No newline at end of file + Change settings

[][src]Function abstio::path_popdat

pub fn path_popdat() -> String
\ No newline at end of file diff --git a/rustdoc/abstio/fn.path_prebaked_results.html b/rustdoc/abstio/fn.path_prebaked_results.html index d967f7d4b7..9cde3559d2 100644 --- a/rustdoc/abstio/fn.path_prebaked_results.html +++ b/rustdoc/abstio/fn.path_prebaked_results.html @@ -1,4 +1,4 @@ abstio::path_prebaked_results - Rust

[][src]Function abstio::path_prebaked_results

pub fn path_prebaked_results(name: &MapName, scenario_name: &str) -> String
\ No newline at end of file + Change settings

[][src]Function abstio::path_prebaked_results

pub fn path_prebaked_results(name: &MapName, scenario_name: &str) -> String
\ No newline at end of file diff --git a/rustdoc/abstio/fn.path_raw_map.html b/rustdoc/abstio/fn.path_raw_map.html index fa7cd23cf8..e0eb21add3 100644 --- a/rustdoc/abstio/fn.path_raw_map.html +++ b/rustdoc/abstio/fn.path_raw_map.html @@ -1,4 +1,4 @@ abstio::path_raw_map - Rust

[][src]Function abstio::path_raw_map

pub fn path_raw_map(name: &MapName) -> String
\ No newline at end of file + Change settings

[][src]Function abstio::path_raw_map

pub fn path_raw_map(name: &MapName) -> String
\ No newline at end of file diff --git a/rustdoc/abstio/fn.path_save.html b/rustdoc/abstio/fn.path_save.html index ad56a80a16..e57ada263b 100644 --- a/rustdoc/abstio/fn.path_save.html +++ b/rustdoc/abstio/fn.path_save.html @@ -1,4 +1,4 @@ abstio::path_save - Rust

[][src]Function abstio::path_save

pub fn path_save(
    name: &MapName,
    edits_name: &str,
    run_name: &str,
    time: String
) -> String
\ No newline at end of file + Change settings

[][src]Function abstio::path_save

pub fn path_save(
    name: &MapName,
    edits_name: &str,
    run_name: &str,
    time: String
) -> String
\ No newline at end of file diff --git a/rustdoc/abstio/fn.path_scenario.html b/rustdoc/abstio/fn.path_scenario.html index 70d2446aa1..0faa5993d4 100644 --- a/rustdoc/abstio/fn.path_scenario.html +++ b/rustdoc/abstio/fn.path_scenario.html @@ -1,4 +1,4 @@ abstio::path_scenario - Rust

[][src]Function abstio::path_scenario

pub fn path_scenario(name: &MapName, scenario_name: &str) -> String
\ No newline at end of file + Change settings

[][src]Function abstio::path_scenario

pub fn path_scenario(name: &MapName, scenario_name: &str) -> String
\ No newline at end of file diff --git a/rustdoc/abstio/fn.slurp_bytes.html b/rustdoc/abstio/fn.slurp_bytes.html index 9660d62bf4..7fd40e5c74 100644 --- a/rustdoc/abstio/fn.slurp_bytes.html +++ b/rustdoc/abstio/fn.slurp_bytes.html @@ -1,6 +1,6 @@ abstio::slurp_bytes - Rust

[][src]Function abstio::slurp_bytes

pub fn slurp_bytes(filename: &str) -> Vec<u8>

An adapter for widgetry::Settings::read_svg to read SVGs using this crate's methods for finding + Change settings

[][src]Function abstio::slurp_bytes

pub fn slurp_bytes(filename: &str) -> Vec<u8>

An adapter for widgetry::Settings::read_svg to read SVGs using this crate's methods for finding and reading files in different environments.

\ No newline at end of file diff --git a/rustdoc/abstio/index.html b/rustdoc/abstio/index.html index c9e6f645b2..99ddad919b 100644 --- a/rustdoc/abstio/index.html +++ b/rustdoc/abstio/index.html @@ -1,20 +1,20 @@ abstio - Rust

[][src]Crate abstio

A/B Street organizes data files in a particular + Change settings

[][src]Crate abstio

A/B Street organizes data files in a particular way. This crate implements methods to find files and (mostly) treat them the same way on native and web.

Modules

abst_data
abst_paths

Generate paths for different A/B Street files

io
io_native

Normal file IO using the filesystem

Structs

-
DataPacks

Player-chosen groups of files to opt into downloading

+
CityName

A single city is identified using this.

+
DataPacks

Player-chosen groups of files to opt into downloading

Entry

A single file

FileWithProgress
Manifest

A list of all canonical data files for A/B Street that're uploaded somewhere. The file formats are tied to the latest version of the git repo. Players use the updater crate to sync these files with local copies.

-
MapName

A single map is identified using this. Using a struct makes refactoring later easier, to -organize cities hierarchially.

+
MapName

A single map is identified using this.

Functions

delete_file

Idempotent

file_exists
find_next_file
find_prev_file

Keeps file extensions

diff --git a/rustdoc/abstio/sidebar-items.js b/rustdoc/abstio/sidebar-items.js index b44905caf9..53b43b17e0 100644 --- a/rustdoc/abstio/sidebar-items.js +++ b/rustdoc/abstio/sidebar-items.js @@ -1 +1 @@ -initSidebarItems({"fn":[["delete_file","Idempotent"],["file_exists",""],["find_next_file",""],["find_prev_file","Keeps file extensions"],["list_all_objects","Just list all things from a directory, return sorted by name, with file extension removed."],["list_dir","Returns full paths"],["load_all_objects","Load all serialized things from a directory, return sorted by name, with file extension removed. Detects JSON or binary. Filters out broken files."],["maybe_read_binary",""],["maybe_read_json",""],["must_read_object","May be a JSON or binary file. Panics on failure."],["parse_scenario_path","Extract the map and scenario name from a path. Crashes if the input is strange."],["path",""],["path_all_edits",""],["path_all_saves",""],["path_all_scenarios",""],["path_camera_state",""],["path_edits",""],["path_player",""],["path_popdat",""],["path_prebaked_results",""],["path_raw_map",""],["path_save",""],["path_scenario",""],["read_binary",""],["read_json",""],["read_object","May be a JSON or binary file"],["slurp_bytes","An adapter for widgetry::Settings::read_svg to read SVGs using this crate's methods for finding and reading files in different environments."],["slurp_file",""],["write_binary",""],["write_json",""]],"mod":[["abst_data",""],["abst_paths","Generate paths for different A/B Street files"],["io",""],["io_native","Normal file IO using the filesystem"]],"struct":[["DataPacks","Player-chosen groups of files to opt into downloading"],["Entry","A single file"],["FileWithProgress",""],["Manifest","A list of all canonical data files for A/B Street that're uploaded somewhere. The file formats are tied to the latest version of the git repo. Players use the updater crate to sync these files with local copies."],["MapName","A single map is identified using this. Using a struct makes refactoring later easier, to organize cities hierarchially."]]}); \ No newline at end of file +initSidebarItems({"fn":[["delete_file","Idempotent"],["file_exists",""],["find_next_file",""],["find_prev_file","Keeps file extensions"],["list_all_objects","Just list all things from a directory, return sorted by name, with file extension removed."],["list_dir","Returns full paths"],["load_all_objects","Load all serialized things from a directory, return sorted by name, with file extension removed. Detects JSON or binary. Filters out broken files."],["maybe_read_binary",""],["maybe_read_json",""],["must_read_object","May be a JSON or binary file. Panics on failure."],["parse_scenario_path","Extract the map and scenario name from a path. Crashes if the input is strange."],["path",""],["path_all_edits",""],["path_all_saves",""],["path_all_scenarios",""],["path_camera_state",""],["path_edits",""],["path_player",""],["path_popdat",""],["path_prebaked_results",""],["path_raw_map",""],["path_save",""],["path_scenario",""],["read_binary",""],["read_json",""],["read_object","May be a JSON or binary file"],["slurp_bytes","An adapter for widgetry::Settings::read_svg to read SVGs using this crate's methods for finding and reading files in different environments."],["slurp_file",""],["write_binary",""],["write_json",""]],"mod":[["abst_data",""],["abst_paths","Generate paths for different A/B Street files"],["io",""],["io_native","Normal file IO using the filesystem"]],"struct":[["CityName","A single city is identified using this."],["DataPacks","Player-chosen groups of files to opt into downloading"],["Entry","A single file"],["FileWithProgress",""],["Manifest","A list of all canonical data files for A/B Street that're uploaded somewhere. The file formats are tied to the latest version of the git repo. Players use the updater crate to sync these files with local copies."],["MapName","A single map is identified using this."]]}); \ No newline at end of file diff --git a/rustdoc/abstio/struct.CityName.html b/rustdoc/abstio/struct.CityName.html new file mode 100644 index 0000000000..d54e678775 --- /dev/null +++ b/rustdoc/abstio/struct.CityName.html @@ -0,0 +1,51 @@ +abstio::CityName - Rust + +

[][src]Struct abstio::CityName

pub struct CityName {
+    pub country: String,
+    pub city: String,
+}

A single city is identified using this.

+

+ Fields

country: String

A two letter lowercase country code, from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2. +To represent imaginary/test cities, use the code zz.

+
city: String

The name of the city, in filename-friendly form -- for example, "tel_aviv".

+

Implementations

impl CityName[src]

pub fn new(country: &str, city: &str) -> CityName[src]

Create a CityName from a country code and city.

+

pub fn list_all_cities_from_system_data() -> Vec<CityName>[src]

Returns all city names based on system data.

+

pub fn list_all_cities_from_importer_config() -> Vec<CityName>[src]

Returns all city names based on importer config.

+

pub fn parse(x: &str) -> Result<CityName>[src]

Parses a CityName from something like "gb/london"; the inverse of to_path.

+

pub fn to_path(&self) -> String[src]

Expresses the city as a path, like "gb/london"; the inverse of parse.

+

pub fn describe(&self) -> String[src]

Stringify the city name for debug messages. Don't implement std::fmt::Display, to force +callers to explicitly opt into this description, which could change.

+

Trait Implementations

impl Clone for CityName[src]

impl Debug for CityName[src]

impl<'de> Deserialize<'de> for CityName[src]

impl Eq for CityName[src]

impl Ord for CityName[src]

impl PartialEq<CityName> for CityName[src]

impl PartialOrd<CityName> for CityName[src]

impl Serialize for CityName[src]

impl StructuralEq for CityName[src]

impl StructuralPartialEq for CityName[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

+

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

+

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

+
\ No newline at end of file diff --git a/rustdoc/abstio/struct.DataPacks.html b/rustdoc/abstio/struct.DataPacks.html index 8ccf223429..fa80b682cb 100644 --- a/rustdoc/abstio/struct.DataPacks.html +++ b/rustdoc/abstio/struct.DataPacks.html @@ -1,16 +1,17 @@ abstio::DataPacks - Rust

[][src]Struct abstio::DataPacks

pub struct DataPacks {
+                Change settings

[][src]Struct abstio::DataPacks

pub struct DataPacks {
     pub runtime: BTreeSet<String>,
     pub input: BTreeSet<String>,
 }

Player-chosen groups of files to opt into downloading

- Fields

runtime: BTreeSet<String>

A list of cities to download for using in A/B Street.

+ Fieldsruntime: BTreeSet<String>

A list of cities to download for using in A/B Street. Expressed the same as +CityName::to_path, like "gb/london".

input: BTreeSet<String>

A list of cities to download for running the map importer.

-

Implementations

impl DataPacks[src]

pub fn load_or_create() -> DataPacks[src]

Load the player's config for what files to download, or create the config.

-

Trait Implementations

impl<'de> Deserialize<'de> for DataPacks[src]

impl Serialize for DataPacks[src]

Implementations

impl DataPacks[src]

pub fn load_or_create() -> DataPacks[src]

Load the player's config for what files to download, or create the config.

+

Trait Implementations

impl<'de> Deserialize<'de> for DataPacks[src]

impl Serialize for DataPacks[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

Fields

entries: BTreeMap<String, Entry>

Keyed by path, starting with "data/"

-

Implementations

impl Manifest[src]

pub fn load() -> Manifest[src]

pub fn filter(self, data_packs: DataPacks) -> Manifest[src]

Removes entries from the Manifest to match the DataPacks that should exist locally.

+

Implementations

impl Manifest[src]

pub fn load() -> Manifest[src]

pub fn filter(self, data_packs: DataPacks) -> Manifest[src]

Removes entries from the Manifest to match the DataPacks that should exist locally.

Trait Implementations

impl<'de> Deserialize<'de> for Manifest[src]

impl Serialize for Manifest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

[][src]Function convert_osm::snappy::dump_output

fn dump_output(
    map: &RawMap,
    cycleways: &BTreeMap<WayID, ExtraShape>,
    road_edges: &HashMap<(OriginalRoad, Direction), PolyLine>,
    matches: MultiMap<(OriginalRoad, Direction), WayID>
)
\ No newline at end of file diff --git a/rustdoc/convert_osm/snappy/fn.snap_cycleways.html b/rustdoc/convert_osm/snappy/fn.snap_cycleways.html index 939dbd17fc..170d3be981 100644 --- a/rustdoc/convert_osm/snappy/fn.snap_cycleways.html +++ b/rustdoc/convert_osm/snappy/fn.snap_cycleways.html @@ -1,5 +1,5 @@ convert_osm::snappy::snap_cycleways - Rust

[][src]Function convert_osm::snappy::snap_cycleways

pub fn snap_cycleways(map: &RawMap, timer: &mut Timer<'_>)

Attempt to snap separately mapped cycleways to main roads. Emit extra KML files to debug later.

+ Change settings

[][src]Function convert_osm::snappy::snap_cycleways

pub fn snap_cycleways(map: &RawMap, timer: &mut Timer<'_>)

Attempt to snap separately mapped cycleways to main roads. Emit extra KML files to debug later.

\ No newline at end of file diff --git a/rustdoc/convert_osm/snappy/fn.v1.html b/rustdoc/convert_osm/snappy/fn.v1.html index 0830afb546..7459b5c731 100644 --- a/rustdoc/convert_osm/snappy/fn.v1.html +++ b/rustdoc/convert_osm/snappy/fn.v1.html @@ -1,4 +1,4 @@ convert_osm::snappy::v1 - Rust

[][src]Function convert_osm::snappy::v1

fn v1(
    map: &RawMap,
    cycleways: &BTreeMap<WayID, ExtraShape>,
    road_edges: &HashMap<(OriginalRoad, Direction), PolyLine>
) -> MultiMap<(OriginalRoad, Direction), WayID>
\ No newline at end of file + Change settings

[][src]Function convert_osm::snappy::v1

fn v1(
    map: &RawMap,
    cycleways: &BTreeMap<WayID, ExtraShape>,
    road_edges: &HashMap<(OriginalRoad, Direction), PolyLine>
) -> MultiMap<(OriginalRoad, Direction), WayID>
\ No newline at end of file diff --git a/rustdoc/convert_osm/snappy/index.html b/rustdoc/convert_osm/snappy/index.html index 6b8aa20447..7a1d3ddd64 100644 --- a/rustdoc/convert_osm/snappy/index.html +++ b/rustdoc/convert_osm/snappy/index.html @@ -1,6 +1,6 @@ convert_osm::snappy - Rust

[][src]Module convert_osm::snappy

Functions

+ Change settings

[][src]Module convert_osm::snappy

Functions

dump_output
snap_cycleways

Attempt to snap separately mapped cycleways to main roads. Emit extra KML files to debug later.

v1
\ No newline at end of file diff --git a/rustdoc/game/app/struct.App.html b/rustdoc/game/app/struct.App.html index ad8b094b4e..79ad2a4c89 100644 --- a/rustdoc/game/app/struct.App.html +++ b/rustdoc/game/app/struct.App.html @@ -124,20 +124,20 @@ call this to handle all other events. Read more

impl State<App> for ScreenshotTest[src]

impl State<App> for ScreenshotTest[src]

impl State<App> for CollisionsViewer[src]

impl State<App> for CollisionsViewer[src]

impl State<App> for PopularDestinations[src]

impl State<App> for ViewKML[src]

impl State<App> for ViewKML[src]

impl State<App> for PolygonEditor[src]

impl State<App> for DevToolsMode[src]

impl State<App> for DevToolsMode[src]

impl State<App> for ChallengesPicker[src]

[][src]Function game::debug::export_for_leaflet

fn export_for_leaflet(ctx: &mut EventCtx<'_>, app: &App)
\ No newline at end of file diff --git a/rustdoc/game/debug/index.html b/rustdoc/game/debug/index.html index 3c1f01d032..c97820e178 100644 --- a/rustdoc/game/debug/index.html +++ b/rustdoc/game/debug/index.html @@ -1,7 +1,7 @@ game::debug - Rust

[][src]Module game::debug

Modules

+ Change settings

[][src]Module game::debug

Modules

blocked_by
floodfill
objects
path_counter
polygons
routes
shared_row
streetmix

Structs

Actions
DebugMode
ScreenshotTest
SearchResults

Functions

calc_all_routes
diff_tags
export_for_leaflet
find_bad_signals
find_degenerate_roads
find_large_intersections
search_osm
\ No newline at end of file diff --git a/rustdoc/game/debug/struct.ScreenshotTest.html b/rustdoc/game/debug/struct.ScreenshotTest.html index c27046cad7..6d007128d7 100644 --- a/rustdoc/game/debug/struct.ScreenshotTest.html +++ b/rustdoc/game/debug/struct.ScreenshotTest.html @@ -5,8 +5,8 @@ todo_maps: Vec<MapName>, screenshot_done: bool, }

- Fields

todo_maps: Vec<MapName>screenshot_done: bool

Implementations

impl ScreenshotTest[src]

fn new(
    ctx: &mut EventCtx<'_>,
    app: &mut App,
    todo_maps: Vec<MapName>
) -> Box<dyn State<App>>
[src]

Trait Implementations

impl State<App> for ScreenshotTest[src]