pub struct TspCity {
pub id: usize,
pub name: String,
pub alias: String,
pub coords: Coords,
}Expand description
A city in the TSP instance.
Fields§
§id: usizeUnique city identifier (0-indexed).
name: StringFull city name.
alias: StringShort alias (2-4 chars).
coords: CoordsGeographic coordinates.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TspCity
impl<'de> Deserialize<'de> for TspCity
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 StructuralPartialEq for TspCity
Auto Trait Implementations§
impl Freeze for TspCity
impl RefUnwindSafe for TspCity
impl Send for TspCity
impl Sync for TspCity
impl Unpin for TspCity
impl UnsafeUnpin for TspCity
impl UnwindSafe for TspCity
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