MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / to_static_str

Method to_static_str

cranelift/codegen/src/ir/condcodes.rs:138–152  ·  view source on GitHub ↗

Get the corresponding string condition code for the IntCC object.

(self)

Source from the content-addressed store, hash-verified

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
155impl Display for IntCC {

Callers 1

fmtMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected