Module constant

Source

Structs§

ConstCalcInfo
Holds static information about extern functions required for const calculations.
ConstValueId
Constant
ConstantData
Information about a constant definition.
ImplConstantId
An impl item of kind const.

Enums§

ConstValue
A constant value.

Functions§

const_calc_info
Query implementation of crate::db::SemanticGroup::const_calc_info.
constant_const_type
Query implementation of crate::db::SemanticGroup::constant_const_type.
constant_const_type_cycle
Cycle handling for crate::db::SemanticGroup::constant_const_type.
constant_const_value
Query implementation of crate::db::SemanticGroup::constant_const_value.
constant_const_value_cycle
Cycle handling for crate::db::SemanticGroup::constant_const_value.
constant_resolver_data
Query implementation of crate::db::SemanticGroup::constant_resolver_data.
constant_resolver_data_cycle
Cycle handling for crate::db::SemanticGroup::constant_resolver_data.
constant_semantic_data
Query implementation of SemanticGroup::constant_semantic_data.
constant_semantic_data_cycle
Cycle handling for SemanticGroup::constant_semantic_data.
constant_semantic_data_cycle_helper
Helper for cycle handling of constants.
constant_semantic_data_helper
Returns constant semantic data for the given ItemConstant.
constant_semantic_diagnostics
Query implementation of SemanticGroup::constant_semantic_diagnostics.
priv_constant_semantic_data
Query implementation of SemanticGroup::priv_constant_semantic_data.
priv_constant_semantic_data_cycle
Cycle handling for SemanticGroup::priv_constant_semantic_data.
resolve_const_expr_and_evaluate
Resolves the given const expression and evaluates its value.
validate_const_expr
Checks if the given expression only involved constant calculations.
value_as_const_value
creates a ConstValue from a BigInt value.