pub enum TspStepType {
Construction,
TwoOptPass,
TwoOptImprove,
BestUpdate,
GraspIteration,
}Expand description
TSP step type for audit logging.
Variants§
Construction
Initial tour construction
TwoOptPass
2-opt improvement pass
TwoOptImprove
2-opt improvement applied
BestUpdate
Best tour updated
GraspIteration
GRASP iteration complete
Trait Implementations§
Source§impl Clone for TspStepType
impl Clone for TspStepType
Source§fn clone(&self) -> TspStepType
fn clone(&self) -> TspStepType
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 Debug for TspStepType
impl Debug for TspStepType
Source§impl<'de> Deserialize<'de> for TspStepType
impl<'de> Deserialize<'de> for TspStepType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TspStepType
impl Display for TspStepType
Source§impl PartialEq for TspStepType
impl PartialEq for TspStepType
Source§impl Serialize for TspStepType
impl Serialize for TspStepType
impl Copy for TspStepType
impl Eq for TspStepType
impl StructuralPartialEq for TspStepType
Auto Trait Implementations§
impl Freeze for TspStepType
impl RefUnwindSafe for TspStepType
impl Send for TspStepType
impl Sync for TspStepType
impl Unpin for TspStepType
impl UnsafeUnpin for TspStepType
impl UnwindSafe for TspStepType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP