Function flexver_rs::compare
source · Examples found in repository?
src/lib.rs (line 144)
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
fn eq(&self, other: &Self) -> bool {
compare(self.0, other.0) == Equal
}
}
impl Eq for FlexVer<'_> {}
impl PartialOrd for FlexVer<'_> {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
Some(compare(self.0, other.0))
}
}
impl Ord for FlexVer<'_> {
fn cmp(&self, other: &Self) -> Ordering {
compare(self.0, other.0)
}