1 2 3 4 5 6 7 8
use super::types::Segment; impl<Scalar: PartialEq> PartialEq for Segment<Scalar> { fn eq(&self, other: &Self) -> bool { (self.start == other.start && self.end == other.end) || (self.end == other.start && self.start == other.end) } }