fn cmp(&self, other: &Self) -> Ordering {
        // semantic ordering is reversed; Fatal is most severe, Debug is least
        let x: u8 = *self as u8;
        let y: u8 = *other as u8;
        if x == y {
            return Ordering::Equal;
        }

        if x > y {
            return Ordering::Less;
        }

        Ordering::Greater
    }
/// invert numeric ordering to match semantic ordering
invert numeric ordering to match semantic ordering
invert numeric ordering to match semantic ordering
fn cmp(&self, other: &Self) -> Ordering {
        // semantic ordering is reversed; Fatal is most severe, Debug is least
        let x: u8 = *self as u8;
        let y: u8 = *other as u8;
        if x == y {
            return Ordering::Equal;
        }
        if x > y {
            return Ordering::Less;
        }
        Ordering::Greater
    }
fn cmp ( & self , other : & Self ) -> Ordering { // semantic ordering is reversed; Fatal is most severe, Debug is least let x : u8 = * self as u8 ; let y : u8 = * other as u8 ; if x == y { return Ordering :: Equal ; } if x > y { return Ordering :: Less ; } Ordering :: Greater }
invert numeric ordering to match semantic ordering
invert numeric ordering to match semantic ordering
&self
other
&Self
&self
other
&Self