Skip to main content

user_eq_kind

Function user_eq_kind 

Source
pub fn user_eq_kind(node: &AIRNode) -> Option<&str>
Expand description

The DQ29 equality lane a BinaryOp { op: Eq | Ne, .. } node was stamped with by the checker (bock_types::checker::USER_EQ_META_KEY), or None for an unstamped (native-equality) comparison.

Lanes: "impl" (explicit impl Equatable — dispatch through the type’s eq), "structural" (record/enum/tuple shape — JS/TS need the __bockEq helper; natively-structural targets keep ==), "deep" (involves a collection — JS/TS and Go route through their deep-equality helpers), and "generic" (bounded type var — JS/TS route through __bockEq). See the metadata key’s docs for the per-target rationale. Like is_user_compare, the stamp is the sole signal: codegen has no type information of its own.