pub struct TwoOptMove {
pub i: usize,
pub j: usize,
pub delta: f32,
}Expand description
An improving reversal of the inclusive segment i..=j.
Selection uses the smallest finite negative delta, then the lexicographically
smallest (i, j) on exact ties. Zero, infinities, and NaNs are not candidates.
Fields§
§i: usizeStart of the reversed route segment, inclusive.
j: usizeEnd of the reversed route segment, inclusive.
delta: f32Change in route distance; improving moves have a negative value.
Trait Implementations§
Source§impl Clone for TwoOptMove
impl Clone for TwoOptMove
impl Copy for TwoOptMove
Source§impl Debug for TwoOptMove
impl Debug for TwoOptMove
Source§impl PartialEq for TwoOptMove
impl PartialEq for TwoOptMove
impl StructuralPartialEq for TwoOptMove
Auto Trait Implementations§
impl Freeze for TwoOptMove
impl RefUnwindSafe for TwoOptMove
impl Send for TwoOptMove
impl Sync for TwoOptMove
impl Unpin for TwoOptMove
impl UnsafeUnpin for TwoOptMove
impl UnwindSafe for TwoOptMove
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