Skip to main content

Module number_domain

Module number_domain 

Source
Expand description

The number-domain contract: the pluggable numeric backend protocol.

The kernel defines the NumberDomain protocol, value and operation contracts, and promotion rules; concrete number domains and arithmetic are libs loaded against it, never kernel-fixed behavior.

Structs§

NumberBinaryOp
A literal-level binary operator keyed on both operand domains.
NumberReductionOp
A literal-level reduction over a homogeneous list of operands.
NumberUnaryOp
A literal-level unary operator keyed on its operand domain.
NumberValueRef
A runtime number value paired with its domain and optional literal form.
PromotionRule
A literal-level conversion edge from one number domain to another.
PromotionSearchLimits
Bounds on the promotion-path search between number domains.
ValueNumberBinaryOp
A value-level binary operator keyed on both operand domains.
ValueNumberReductionOp
A value-level reduction over a homogeneous list of operands.
ValueNumberUnaryOp
A value-level unary operator keyed on its operand domain.
ValuePromotionRule
A value-level conversion edge from one number domain to another.

Traits§

NumberDomain
Runtime protocol for a numeric semantic domain.
NumberValue
Protocol for runtime objects that present themselves as numbers.