pub struct SolutionState { /* private fields */ }Expand description
Keeps track of some solution state values.
Implementations§
Source§impl SolutionState
impl SolutionState
Trait Implementations§
Source§impl Clone for SolutionState
impl Clone for SolutionState
Source§fn clone(&self) -> SolutionState
fn clone(&self) -> SolutionState
Returns a duplicate 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 SolutionState
impl Default for SolutionState
Source§fn default() -> SolutionState
fn default() -> SolutionState
Returns the “default value” for a type. Read more
Source§impl TourCompactnessSolutionState for SolutionState
impl TourCompactnessSolutionState for SolutionState
Source§fn get_tour_compactness(&self) -> Option<&Cost>
fn get_tour_compactness(&self) -> Option<&Cost>
Gets TourCompactness property.
Source§fn set_tour_compactness(&mut self, value: Cost) -> &mut Self
fn set_tour_compactness(&mut self, value: Cost) -> &mut Self
Sets TourCompactness property.
Source§impl TourOrderViolationsSolutionState for SolutionState
impl TourOrderViolationsSolutionState for SolutionState
Source§fn get_tour_order_violations(&self) -> Option<&usize>
fn get_tour_order_violations(&self) -> Option<&usize>
Gets TourOrderViolations property.
Source§fn set_tour_order_violations(&mut self, value: usize) -> &mut Self
fn set_tour_order_violations(&mut self, value: usize) -> &mut Self
Sets TourOrderViolations property.
Auto Trait Implementations§
impl Freeze for SolutionState
impl !RefUnwindSafe for SolutionState
impl Send for SolutionState
impl Sync for SolutionState
impl Unpin for SolutionState
impl UnsafeUnpin for SolutionState
impl !UnwindSafe for SolutionState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more