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
Genericstype and thegenerics_ofquery in rustc. - path ๐
- Transforms syntax into
Pathobjects, ideally with accounting for hygiene
Structsยง
Enumsยง
- Awaitable ๐
- Lifetime
Bound ๐Scope - RibKind ๐
- TryBlock ๐
Functionsยง
- comma_
follows_ ๐token - hir_
assoc_ type_ binding_ to_ ast - This function find the AST fragment that corresponds to an
AssociatedTypeBindingin the HIR. - hir_
generic_ arg_ to_ ast - This function find the AST generic argument from the one in the HIR. Does not support the
Selfargument. - hir_
segment_ to_ ast_ segment - This function finds the AST segment that corresponds to the HIR segment
with index
segment_idxon the path that is lowered frompath. - lower_
body ๐ - lower_
function ๐ - lower_
generic_ params - lower_
impl ๐ - lower_
trait ๐ - lower_
type_ ๐alias - lower_
type_ ๐ref - pat_
literal_ ๐to_ hir - validate_
required_ ๐body