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

Method opaque_eq

cel/src/objects.rs:321–330  ·  view source on GitHub ↗
(&self, other: &dyn Opaque)

Source from the content-addressed store, hash-verified

319 T: Eq + PartialEq + Any + Opaque,
320{
321 fn opaque_eq(&self, other: &dyn Opaque) -> bool {
322 if self.runtime_type_name() != other.runtime_type_name() {
323 return false;
324 }
325 if let Some(other) = other.downcast_ref::<T>() {
326 self.eq(other)
327 } else {
328 false
329 }
330 }
331}
332
333/// Helper trait to obtain a `&dyn Debug` view.

Callers 2

equalsMethod · 0.80
eqMethod · 0.80

Calls 2

runtime_type_nameMethod · 0.80
eqMethod · 0.45

Tested by

no test coverage detected