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

Function def_eq_lam_structural

crates/kernel/src/def_eq.rs:1918–1924  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1916 }
1917 },
1918 _ => None,
1919 }
1920}
1921
1922/// Extract head constant's display form as a string, for diagnostic
1923/// prefix matching. Uses `{kid}`'s Display impl (which is defined for
1924/// every `KernelMode`), not the inner `Name` which only has Display in
1925/// Meta mode. Returns `None` if the head isn't a `Const`.
1926fn head_const_name<M: KernelMode>(e: &KExpr<M>) -> Option<String> {
1927 let id = head_const_id(e)?;

Callers

nothing calls this directly

Calls 4

env_with_idFunction · 0.70
lamFunction · 0.70
sort0Function · 0.70
varFunction · 0.70

Tested by

no test coverage detected