MCPcopy Create free account
hub / github.com/argumentcomputer/ix / head_const_name

Function head_const_name

crates/kernel/src/def_eq.rs:1661–1664  ·  view source on GitHub ↗

Extract head constant's display form as a string, for diagnostic prefix matching. Uses `{kid}`'s Display impl (which is defined for every `KernelMode`), not the inner `Name` which only has Display in Meta mode. Returns `None` if the head isn't a `Const`.

(e: &KExpr<M>)

Source from the content-addressed store, hash-verified

1659 }
1660 log::info!(
1661 "[eta] const={} depth={} reason={} id={} idx={} a={} b={}",
1662 self.debug_label.as_deref().unwrap_or("<unknown>"),
1663 self.def_eq_depth,
1664 reason,
1665 id_s,
1666 idx,
1667 compact_def_eq_expr(a),

Callers 4

is_def_eqMethod · 0.85
is_def_eq_innerMethod · 0.85
dump_def_eq_maxMethod · 0.85
dump_def_eq_rec_fuelMethod · 0.85

Calls 1

head_const_idFunction · 0.85

Tested by

no test coverage detected