Skip to main content

Module lower

Module lower 

Source
Expand description

Transforms ast::Expr into an equivalent hir_def::expr::Expr representation.

Modulesยง

asm ๐Ÿ”’
Lowering of inline assembly.
format_args ๐Ÿ”’
Lowering of format_args!().
generics ๐Ÿ”’
Many kinds of items or constructs can have generic parameters: functions, structs, impls, traits, etc. This module provides a common HIR for these generic parameters. See also the Generics type and the generics_of query in rustc.
path ๐Ÿ”’
Transforms syntax into Path objects, ideally with accounting for hygiene

Structsยง

BindingList ๐Ÿ”’
ExprCollector
LabelRib ๐Ÿ”’
NamedLifetimeStore

Enumsยง

Awaitable ๐Ÿ”’
LifetimeBoundScope ๐Ÿ”’
RibKind ๐Ÿ”’
TryBlock ๐Ÿ”’

Functionsยง

comma_follows_token ๐Ÿ”’
hir_assoc_type_binding_to_ast
This function find the AST fragment that corresponds to an AssociatedTypeBinding in the HIR.
hir_generic_arg_to_ast
This function find the AST generic argument from the one in the HIR. Does not support the Self argument.
hir_segment_to_ast_segment
This function finds the AST segment that corresponds to the HIR segment with index segment_idx on the path that is lowered from path.
lower_body ๐Ÿ”’
lower_function ๐Ÿ”’
lower_generic_params
lower_impl ๐Ÿ”’
lower_trait ๐Ÿ”’
lower_type_alias ๐Ÿ”’
lower_type_ref ๐Ÿ”’
pat_literal_to_hir ๐Ÿ”’
validate_required_body ๐Ÿ”’