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

Function head_const_id

crates/kernel/src/def_eq.rs:1643–1655  ·  view source on GitHub ↗

Extract head constant KId from expression or app spine.

(e: &KExpr<M>)

Source from the content-addressed store, hash-verified

1641
1642 fn dump_eta_trace(
1643 &self,
1644 reason: &str,
1645 id: Option<&KId<M>>,
1646 idx: usize,
1647 a: &KExpr<M>,
1648 b: &KExpr<M>,
1649 ) {
1650 let Some(filter) = IX_ETA_TRACE.as_ref() else {
1651 return;
1652 };
1653 if !self.debug_label_matches_env() {
1654 return;
1655 }
1656 let id_s = id.map_or_else(|| "<none>".into(), |id| id.to_string());
1657 if !filter.is_empty() && !id_s.contains(filter) {
1658 return;

Callers 3

is_def_eq_innerMethod · 0.85
head_const_nameFunction · 0.85

Calls 3

collect_app_spineFunction · 0.85
dataMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected