From 08a956cf2333c3f5caee8372ba9d9a0a82081782 Mon Sep 17 00:00:00 2001 From: Jean SIMARD Date: Fri, 20 Sep 2024 17:38:00 +0200 Subject: [PATCH] fixup! editoast: make intersection as a type Signed-off-by: Jean SIMARD --- editoast/src/views/path/projection.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editoast/src/views/path/projection.rs b/editoast/src/views/path/projection.rs index 8cfa416d5b3..6b0c439f1a1 100644 --- a/editoast/src/views/path/projection.rs +++ b/editoast/src/views/path/projection.rs @@ -206,9 +206,12 @@ impl<'a> PathProjection<'a> { } } +/// Represent the intersection between a track range and a path, relative to the beginning of the path #[cfg_attr(test, derive(Debug, PartialEq))] pub struct Intersection { + /// Distance of the beginning of the intersection relative to the beginning of the path start: u64, + /// Distance of the end of the intersection relative to the beginning of the path end: u64, } impl From<(u64, u64)> for Intersection {