Module const_eval

Source

Modulesยง

dummy_machine ๐Ÿ”’
error ๐Ÿ”’
eval_queries ๐Ÿ”’
fn_queries ๐Ÿ”’
machine ๐Ÿ”’
valtrees ๐Ÿ”’

Macrosยง

throw_machine_stop_str
Macro for machine-specific InterpError without allocation. (These will never be shown to the user, but they help diagnose ICEs.)

Structsยง

CompileTimeMachine
Extra machine state for CTFE, and the Machine instance.
DummyMachine

Enumsยง

CheckAlignment
ConstEvalErrKind
The CTFE machine has some custom error kinds.
MemoryKind
ValTreeCreationError ๐Ÿ”’

Constantsยง

VALTREE_MAX_NODES ๐Ÿ”’

Traitsยง

InterpretationResult

Functionsยง

eval_static_initializer_provider
eval_to_allocation_raw_provider
eval_to_const_value_raw_provider
get_span_and_frames
mk_eval_cx_for_const_val
Create an interpreter context to inspect the given ConstValue. Returns both the context and an OpTy that represents the constant.
provide
tag_for_variant_provider
Computes the tag (if any) for a given type and variant.
try_destructure_mir_constant_for_user_output ๐Ÿ”’

Type Aliasesยง

CompileTimeInterpCx
ValTreeCreationResult ๐Ÿ”’