Struct map_model::RawToMapOptions
source · pub struct RawToMapOptions {
pub skip_ch: bool,
pub keep_bldg_tags: bool,
}
Expand description
Options for converting RawMaps to Maps.
Fields§
§skip_ch: bool
Should contraction hierarchies for pathfinding be built? They’re slow to build, but without them, pathfinding on the map later will be very slow.
Preserve all OSM tags for buildings, increasing the final file size substantially.
Trait Implementations§
source§impl Clone for RawToMapOptions
impl Clone for RawToMapOptions
source§fn clone(&self) -> RawToMapOptions
fn clone(&self) -> RawToMapOptions
Returns a copy 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 Default for RawToMapOptions
impl Default for RawToMapOptions
source§fn default() -> RawToMapOptions
fn default() -> RawToMapOptions
Returns the “default value” for a type. Read more
source§impl StructOpt for RawToMapOptions
impl StructOpt for RawToMapOptions
source§fn from_clap(matches: &ArgMatches<'_>) -> Self
fn from_clap(matches: &ArgMatches<'_>) -> Self
Builds the struct from
clap::ArgMatches
. It’s guaranteed to succeed
if matches
originates from an App
generated by [StructOpt::clap
] called on
the same type, otherwise it must panic.§fn from_args() -> Selfwhere
Self: Sized,
fn from_args() -> Selfwhere
Self: Sized,
Builds the struct from the command line arguments (
std::env::args_os
).
Calls clap::Error::exit
on failure, printing the error message and aborting the program.§fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
Builds the struct from the command line arguments (
std::env::args_os
).
Unlike [StructOpt::from_args
], returns clap::Error
on failure instead of aborting the program,
so calling .exit
is up to you.§fn from_iter<I>(iter: I) -> Self
fn from_iter<I>(iter: I) -> Self
Gets the struct from any iterator such as a
Vec
of your making.
Print the error message and quit the program in case of failure. Read more§fn from_iter_safe<I>(iter: I) -> Result<Self, Error>
fn from_iter_safe<I>(iter: I) -> Result<Self, Error>
Gets the struct from any iterator such as a
Vec
of your making. Read moreAuto Trait Implementations§
impl Freeze for RawToMapOptions
impl RefUnwindSafe for RawToMapOptions
impl Send for RawToMapOptions
impl Sync for RawToMapOptions
impl Unpin for RawToMapOptions
impl UnwindSafe for RawToMapOptions
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