pub struct TspMeta {
pub id: String,
pub version: String,
pub description: String,
pub source: String,
pub units: String,
pub optimal_known: Option<u32>,
}Expand description
Metadata about the TSP instance.
Fields§
§id: StringUnique instance identifier.
version: StringVersion string (semver).
description: StringHuman-readable description.
source: StringData source (e.g., “Google Maps”).
units: StringDistance units (e.g., “miles”, “km”).
optimal_known: Option<u32>Known optimal solution (for verification).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TspMeta
impl<'de> Deserialize<'de> for TspMeta
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
impl Eq for TspMeta
impl StructuralPartialEq for TspMeta
Auto Trait Implementations§
impl Freeze for TspMeta
impl RefUnwindSafe for TspMeta
impl Send for TspMeta
impl Sync for TspMeta
impl Unpin for TspMeta
impl UnsafeUnpin for TspMeta
impl UnwindSafe for TspMeta
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.