From e7c509b320195c7d185e1b275a8cc4e1f65180f5 Mon Sep 17 00:00:00 2001 From: Thell 'Bo' Fowler Date: Sun, 25 Jan 2026 10:03:58 -0600 Subject: [PATCH] PathCalculator: add derives for Clone, Debug - add supporting derives on `Data`, `Arc`, `ValidFlags` --- src/path_calculator.rs | 2 ++ src/preparation_graph.rs | 2 +- src/valid_flags.rs | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) 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,