Struct vrp_core::utils::Environment [−][src]
pub struct Environment {
pub random: Arc<dyn Random + Send + Sync>,
pub parallelism: Parallelism,
pub logger: InfoLogger,
pub is_experimental: bool,
}Expand description
Keeps track of environment specific information which influences algorithm behavior.
Fields
random: Arc<dyn Random + Send + Sync>A wrapper on random generator.
parallelism: ParallelismKeeps data parallelism settings.
logger: InfoLoggerAn information logger.
is_experimental: boolA boolean flag which signalizes that experimental behavior is allowed.
Implementations
pub fn new(
random: Arc<dyn Random + Send + Sync>,
parallelism: Parallelism,
logger: InfoLogger,
is_experimental: bool
) -> Self
pub fn new(
random: Arc<dyn Random + Send + Sync>,
parallelism: Parallelism,
logger: InfoLogger,
is_experimental: bool
) -> Self
Creates an instance of Environment.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl !UnwindSafe for Environment
Blanket Implementations
Mutably borrows from an owned value. Read more