Skip to content

func.EffectContract enum

← Attribute reference

Callable effect contract. Absent (0) means unspecified (conservative).

Cases

Keyword Value Description
pure 1 No memory effects, deterministic.
readonly 2 May deterministically read memory but has no other effects.

Used by

  • func.call.effect_contract
  • func.decl.effect_contract
  • func.def.effect_contract