pub struct TspStepResult {
pub improved: bool,
pub tour_length: u32,
pub optimality_gap: Option<f64>,
}Expand description
Step result for TSP simulation.
Fields§
§improved: boolWhether this step improved the solution.
tour_length: u32Current tour length.
optimality_gap: Option<f64>Gap from best known (if available).
Trait Implementations§
Source§impl Clone for TspStepResult
impl Clone for TspStepResult
Source§fn clone(&self) -> TspStepResult
fn clone(&self) -> TspStepResult
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 moreAuto Trait Implementations§
impl Freeze for TspStepResult
impl RefUnwindSafe for TspStepResult
impl Send for TspStepResult
impl Sync for TspStepResult
impl Unpin for TspStepResult
impl UnsafeUnpin for TspStepResult
impl UnwindSafe for TspStepResult
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