Struct vrp_core::utils::Environment
source · [−]pub struct Environment {
pub random: Arc<dyn Random + Sync + Send + 'static>,
pub quota: Option<Arc<dyn Quota + Sync + Send + 'static>>,
pub parallelism: Parallelism,
pub logger: Arc<dyn Fn(&str) + Sync + Send + 'static>,
pub is_experimental: bool,
}Expand description
Keeps track of environment specific information which influences algorithm behavior.
Fields
random: Arc<dyn Random + Sync + Send + 'static>A wrapper on random generator.
quota: Option<Arc<dyn Quota + Sync + Send + 'static>>A global execution quota.
parallelism: ParallelismKeeps data parallelism settings.
logger: Arc<dyn Fn(&str) + Sync + Send + 'static>An information logger.
is_experimental: boolA boolean flag which signalizes that experimental behavior is allowed.
Implementations
Creates an instance of Environment using optional time quota and defaults.
Trait Implementations
Returns the “default value” for a type. Read more
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