pub struct Instance {Show 13 fields
pub name: String,
pub type_: Option<Type>,
pub comment: Vec<String>,
pub dimension: usize,
pub capacity: usize,
pub edge_data: Option<EdgeData>,
pub edge_weight: Option<EdgeWeight>,
pub edge_weight_type: Option<EdgeWeightType>,
pub fixed_edges: Option<Vec<(usize, usize)>>,
pub node_coord: Option<NodeCoord>,
pub display_data: Option<Vec<(usize, f64, f64)>>,
pub display_data_type: Option<DisplayDataType>,
pub tour: Option<Vec<usize>>,
}
Expand description
An TSPLIB instance.
Fields§
§name: String
§type_: Option<Type>
§comment: Vec<String>
§dimension: usize
§capacity: usize
§edge_data: Option<EdgeData>
§edge_weight: Option<EdgeWeight>
§edge_weight_type: Option<EdgeWeightType>
§fixed_edges: Option<Vec<(usize, usize)>>
§node_coord: Option<NodeCoord>
§display_data: Option<Vec<(usize, f64, f64)>>
§display_data_type: Option<DisplayDataType>
§tour: Option<Vec<usize>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnwindSafe for Instance
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