Skip to content

Commit

Permalink
fixup! editoast: make intersection as a type
Browse files Browse the repository at this point in the history
Signed-off-by: Jean SIMARD <[email protected]>
  • Loading branch information
woshilapin committed Sep 20, 2024
1 parent 8a82a50 commit 08a956c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editoast/src/views/path/projection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 08a956c

Please sign in to comment.