#[allow(unused_imports)]
use super::functions::*;
use super::types::CollapseCandidate;
impl PartialEq for CollapseCandidate {
fn eq(&self, other: &Self) -> bool {
self.cost == other.cost
}
}
impl Eq for CollapseCandidate {}
impl PartialOrd for CollapseCandidate {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
Some(self.cmp(other))
}
}
impl Ord for CollapseCandidate {
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
other
.cost
.partial_cmp(&self.cost)
.unwrap_or(std::cmp::Ordering::Equal)
}
}