Skip to main content

oxiphysics_geometry/decimation/
meshedge_traits.rs

1//! # MeshEdge - Trait Implementations
2//!
3//! This module contains trait implementations for `MeshEdge`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Eq`
8//! - `PartialOrd`
9//! - `Ord`
10//!
11//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
12
13use super::types::MeshEdge;
14
15impl Eq for MeshEdge {}
16
17impl PartialOrd for MeshEdge {
18    fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
19        Some(self.cmp(other))
20    }
21}
22
23impl Ord for MeshEdge {
24    fn cmp(&self, other: &Self) -> std::cmp::Ordering {
25        other
26            .cost
27            .partial_cmp(&self.cost)
28            .unwrap_or(std::cmp::Ordering::Equal)
29    }
30}