Function can_coerce_for_relational

Source
fn can_coerce_for_relational(
    context: &CompilationContext,
    left_type: &TypeId,
    right_type: &TypeId,
) -> bool
Expand description

Checks if types are compatible for unspecified literal coercion in relational operations

§Arguments

  • context - The compilation context
  • left_type - The type of the left operand
  • right_type - The type of the right operand

§Returns

  • true if one operand is an unspecified literal compatible with the other, false otherwise