int_interval_stack/int_co_stack/
impls_for_derived_traits.rs1use super::*;
2
3impl<I> Clone for IntCOStack<I>
4where
5 I: IntCO,
6{
7 fn clone(&self) -> Self {
8 Self {
9 change_points: self.change_points.clone(),
10 height_stats: self.height_stats,
11 covered: OnceLock::new(),
12 }
13 }
14}
15
16impl<I> PartialEq for IntCOStack<I>
17where
18 I: IntCO,
19{
20 fn eq(&self, other: &Self) -> bool {
21 self.change_points == other.change_points && self.height_stats == other.height_stats
22 }
23}
24
25impl<I> Eq for IntCOStack<I> where I: IntCO {}
26
27#[cfg(test)]
28mod tests_for_clone_and_eq;