Function abstio::maybe_read_binary
source · pub fn maybe_read_binary<T: DeserializeOwned>(
path: String,
- timer: &mut Timer<'_>
+ timer: &mut Timer<'_>
) -> Result<T>
diff --git a/rustdoc/abstio/abst_paths/struct.MapName.html b/rustdoc/abstio/abst_paths/struct.MapName.html
index 87e576e8f9..7708a540da 100644
--- a/rustdoc/abstio/abst_paths/struct.MapName.html
+++ b/rustdoc/abstio/abst_paths/struct.MapName.html
@@ -34,11 +34,11 @@ by ==
.impl PartialOrd for MapName
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl CloneableAny for MapName
impl Eq for MapName
impl StructuralPartialEq for MapName
key
and return true
if they are equal.Span
], returning an
diff --git a/rustdoc/abstio/fn.maybe_read_binary.html b/rustdoc/abstio/fn.maybe_read_binary.html
index 26db040d99..f24db5323b 100644
--- a/rustdoc/abstio/fn.maybe_read_binary.html
+++ b/rustdoc/abstio/fn.maybe_read_binary.html
@@ -1,4 +1,4 @@
pub fn maybe_read_binary<T: DeserializeOwned>(
path: String,
- timer: &mut Timer<'_>
+ timer: &mut Timer<'_>
) -> Result<T>
pub fn maybe_read_json<T: DeserializeOwned>(
path: String,
- timer: &mut Timer<'_>
+ timer: &mut Timer<'_>
) -> Result<T>
pub fn must_read_object<T: DeserializeOwned>(
path: String,
- timer: &mut Timer<'_>
+ timer: &mut Timer<'_>
) -> T
May be a JSON or binary file. Panics on failure.
pub fn read_binary<T: DeserializeOwned>(
path: String,
- timer: &mut Timer<'_>
+ timer: &mut Timer<'_>
) -> T
pub fn read_json<T: DeserializeOwned>(path: String, timer: &mut Timer<'_>) -> T
pub fn read_object<T: DeserializeOwned>(
path: String,
- timer: &mut Timer<'_>
+ timer: &mut Timer<'_>
) -> Result<T>
May be a JSON or binary file
pub fn maybe_read_json<T: DeserializeOwned>(
path: String,
- timer: &mut Timer<'_>
+ timer: &mut Timer<'_>
) -> Result<T>
pub fn must_read_object<T: DeserializeOwned>(
path: String,
- timer: &mut Timer<'_>
+ timer: &mut Timer<'_>
) -> T
May be a JSON or binary file. Panics on failure.
pub fn read_binary<T: DeserializeOwned>(
path: String,
- timer: &mut Timer<'_>
+ timer: &mut Timer<'_>
) -> T
pub fn read_object<T: DeserializeOwned>(
path: String,
- timer: &mut Timer<'_>
+ timer: &mut Timer<'_>
) -> Result<T>
May be a JSON or binary file
pub fn maybe_read_binary<T: DeserializeOwned>(
path: String,
- timer: &mut Timer<'_>
+ timer: &mut Timer<'_>
) -> Result<T>
inner: BufReader<File>
§path: String
§processed_bytes: usize
§total_bytes: usize
§started_at: Instant
§last_printed_at: Instant
Also hands back a callback that’ll add the final result to the timer. The caller must run +) -> Result<(FileWithProgress, Box<dyn Fn(&mut Timer<'_>)>)>
Also hands back a callback that’ll add the final result to the timer. The caller must run it.
read
, except that it reads into a slice of buffers. Read morecan_vector
)Read
er has an efficient read_vectored
diff --git a/rustdoc/abstio/struct.FileWithProgress.html b/rustdoc/abstio/struct.FileWithProgress.html
index c31fc53a80..73c190e1aa 100644
--- a/rustdoc/abstio/struct.FileWithProgress.html
+++ b/rustdoc/abstio/struct.FileWithProgress.html
@@ -7,7 +7,7 @@
last_printed_at: Instant,
}inner: BufReader<File>
§path: String
§processed_bytes: usize
§total_bytes: usize
§started_at: Instant
§last_printed_at: Instant
Also hands back a callback that’ll add the final result to the timer. The caller must run +) -> Result<(FileWithProgress, Box<dyn Fn(&mut Timer<'_>)>)>
Also hands back a callback that’ll add the final result to the timer. The caller must run it.
read
, except that it reads into a slice of buffers. Read morecan_vector
)Read
er has an efficient read_vectored
diff --git a/rustdoc/abstio/struct.MapName.html b/rustdoc/abstio/struct.MapName.html
index 150b506c63..8062a73a28 100644
--- a/rustdoc/abstio/struct.MapName.html
+++ b/rustdoc/abstio/struct.MapName.html
@@ -34,11 +34,11 @@ by ==
.self
and other
) and is used by the <=
operator. Read morekey
and return true
if they are equal.Span
], returning an
diff --git a/rustdoc/cli/augment_scenario/fn.add_lunch_trips.html b/rustdoc/cli/augment_scenario/fn.add_lunch_trips.html
index 9d4da5eaf7..2e1a9d7628 100644
--- a/rustdoc/cli/augment_scenario/fn.add_lunch_trips.html
+++ b/rustdoc/cli/augment_scenario/fn.add_lunch_trips.html
@@ -1,6 +1,6 @@
fn add_lunch_trips(
- scenario: &mut Scenario,
+ scenario: &mut Scenario,
map: &Map,
rng: &mut XorShiftRng,
- timer: &mut Timer<'_>
+ timer: &mut Timer<'_>
)
fn add_return_trips(scenario: &mut Scenario, rng: &mut XorShiftRng)
fn add_return_trips(scenario: &mut Scenario, rng: &mut XorShiftRng)
fn delete_cancelled_trips(scenario: Scenario) -> Scenario
fn delete_cancelled_trips(scenario: Scenario) -> Scenario