Get the corresponding string condition code for the IntCC object.
(self)
| 136 | |
| 137 | /// Get the corresponding string condition code for the IntCC object. |
| 138 | pub fn to_static_str(self) -> &'static str { |
| 139 | use self::IntCC::*; |
| 140 | match self { |
| 141 | Equal => "eq", |
| 142 | NotEqual => "ne", |
| 143 | SignedGreaterThan => "sgt", |
| 144 | SignedGreaterThanOrEqual => "sge", |
| 145 | SignedLessThan => "slt", |
| 146 | SignedLessThanOrEqual => "sle", |
| 147 | UnsignedGreaterThan => "ugt", |
| 148 | UnsignedGreaterThanOrEqual => "uge", |
| 149 | UnsignedLessThan => "ult", |
| 150 | UnsignedLessThanOrEqual => "ule", |
| 151 | } |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | impl Display for IntCC { |