pub trait TourCompactnessSolutionState {
// Required methods
fn get_tour_compactness(&self) -> Option<&Cost>;
fn set_tour_compactness(&mut self, value: Cost) -> &mut Self;
}Expand description
Extends SolutionState within a new TourCompactnessSolutionState.
Required Methods§
Sourcefn get_tour_compactness(&self) -> Option<&Cost>
fn get_tour_compactness(&self) -> Option<&Cost>
Gets TourCompactness property.
Sourcefn set_tour_compactness(&mut self, value: Cost) -> &mut Self
fn set_tour_compactness(&mut self, value: Cost) -> &mut Self
Sets TourCompactness property.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".