MCPcopy Create free account
hub / github.com/cel-rust/cel-rust / equals

Method equals

cel/src/objects.rs:428–437  ·  view source on GitHub ↗
(&self, other: &dyn Val)

Source from the content-addressed store, hash-verified

426 }
427
428 fn equals(&self, other: &dyn Val) -> bool {
429 if other.get_type() != self.get_type() {
430 false
431 } else {
432 match other.downcast_ref::<OpaqueVal>() {
433 None => false,
434 Some(other) => self.val.opaque_eq(other.val.deref()),
435 }
436 }
437 }
438
439 fn clone_as_boxed(&self) -> Box<dyn Val> {
440 Box::new(Self {

Callers

nothing calls this directly

Calls 3

opaque_eqMethod · 0.80
get_typeMethod · 0.45
derefMethod · 0.45

Tested by

no test coverage detected