Skip to main content

Module type_certainty

Module type_certainty 

Source

Modulesยง

certainty ๐Ÿ”’

Structsยง

CertaintyVisitor ๐Ÿ”’

Functionsยง

adt_def_id ๐Ÿ”’
contains_param ๐Ÿ”’
expr_type_certainty ๐Ÿ”’
Determine the type certainty of expr. in_arg indicates that the expression happens within the evaluation of a function or method call argument.
expr_type_is_certain
A heuristic to tell whether an expressionโ€™s type can be determined purely from its subexpressions, and the arguments and locals they use. Put another way, this function tries to tell whether an expressionโ€™s type can be determined without appeal to the surrounding context.
generic_args_certainty ๐Ÿ”’
param_certainty ๐Ÿ”’
Tries to tell whether param resolves to something certain, e.g., a non-wildcard type if present. The certainty DefId is cleared before returning.
path_segment_certainty ๐Ÿ”’
qpath_certainty ๐Ÿ”’
Tries to tell whether a QPath resolves to something certain, e.g., whether all of its path segments generic arguments are instantiated.
self_ty ๐Ÿ”’
type_certainty ๐Ÿ”’
type_is_inferable_from_arguments ๐Ÿ”’
update_res ๐Ÿ”’
For at least some QPath::TypeRelative, the path segmentโ€™s res can be Res::Err. update_res tries to fix the resolution when parent_certainty is Certain(Some(..)).