diff --git a/src/path_calculator.rs b/src/path_calculator.rs index 98e0115..5cf7101 100644 --- a/src/path_calculator.rs +++ b/src/path_calculator.rs @@ -29,6 +29,7 @@ use crate::heap_item::HeapItem; use crate::shortest_path::ShortestPath; use crate::valid_flags::ValidFlags; +#[derive(Clone, Debug)] pub struct PathCalculator { num_nodes: usize, data_fwd: Vec, @@ -375,6 +376,7 @@ impl PathCalculator { } } +#[derive(Clone, Debug)] struct Data { settled: bool, weight: Weight, diff --git a/src/preparation_graph.rs b/src/preparation_graph.rs index fa82d60..3c6941a 100644 --- a/src/preparation_graph.rs +++ b/src/preparation_graph.rs @@ -154,7 +154,7 @@ impl PreparationGraph { } } -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Arc { pub adj_node: NodeId, pub weight: Weight, diff --git a/src/valid_flags.rs b/src/valid_flags.rs index 1bb9fc6..2aadc79 100644 --- a/src/valid_flags.rs +++ b/src/valid_flags.rs @@ -23,6 +23,7 @@ use crate::constants::NodeId; /// Maintains a collection of N boolean flags that can efficiently be reset by incrementing a /// single integer +#[derive(Clone, Debug)] pub struct ValidFlags { valid_flags: Vec, valid_flag: u32,