MCPcopy Index your code
hub / github.com/carllerche/assert-struct / as_str

Method as_str

assert-struct/src/error.rs:224–233  ·  view source on GitHub ↗

Get the string representation of this operator

(&self)

Source from the content-addressed store, hash-verified

222impl ComparisonOp {
223 /// Get the string representation of this operator
224 pub fn as_str(&self) -> &'static str {
225 match self {
226 ComparisonOp::Less => "<",
227 ComparisonOp::LessEqual => "<=",
228 ComparisonOp::Greater => ">",
229 ComparisonOp::GreaterEqual => ">=",
230 ComparisonOp::Equal => "==",
231 ComparisonOp::NotEqual => "!=",
232 }
233 }
234}
235
236impl ErrorReport {

Callers 3

likeMethod · 0.80
fmtMethod · 0.80
capture_panic_messageFunction · 0.80

Calls

no outgoing calls

Tested by 1

capture_panic_messageFunction · 0.64