Structsยง
- Container
Info ๐ - The thing whose expression we are extracting from. Can be a function, const, static, const arg, โฆ
- Control
Flow ๐ - Function ๐
- Local
Usages ๐ - Container of local variable usages
- Outlived
Local ๐ - Param ๐
Enumsยง
- Anchor ๐
- Where to put extracted function definition
- Flow
Handler ๐ - Flow
Kind ๐ - Control flow that is exported from extracted function
- FunType ๐
- Function
Body ๐ - Semantically same as
ast::Expr, but preserves identity when using only part of the Block This is the future function body, the part that is being extracted. - Generic
Parent ๐ - Param
Kind ๐ - RetType ๐
- TryKind ๐
Functionsยง
- expr_
require_ ๐exclusive_ access - checks if this expr requires
&mutaccess, recurses on field access - extract_
function ๐ - extraction_
target ๐ - Try to guess what user wants to extract
- find_
non_ ๐trait_ impl - fix_
param_ ๐usages - change all usages to account for added
&/&mutfor some params - format_
function ๐ - format_
type ๐ - generic_
parents ๐ - Search
parentโs ancestors for items with potentially applicable generic parameters - has_
exclusive_ ๐usages - checks if relevant var is used with
&mutaccess inside body - impl_
type_ ๐name - is_
defined_ ๐outside_ of_ body - checks if the relevant local was defined before(outside of) body
- is_
inherit_ ๐attr - is_
trait_ ๐impl - last_
impl_ ๐member - local_
outlives_ ๐body - Returns usage details if local variable is used after(outside of) body
- locals_
defined_ ๐in_ body - list local variables defined inside
body - make_
body ๐ - make_
call ๐ - make_
function_ ๐name - make_
generic_ ๐param_ list - make_
generic_ ๐params_ and_ where_ clause - make_
rewritten_ ๐flow - make_ty ๐
- make_
where_ ๐clause - map_
tail_ ๐expr - node_
to_ ๐insert_ after - find where to put extracted function definition
- param_
is_ ๐required - path_
element_ ๐of - find relevant
ast::Exprfor reference - path_
expr_ ๐from_ local - pred_
is_ ๐required - reference_
is_ ๐exclusive - checks if this reference requires
&mutaccess inside node - resolved_
type_ ๐param - rewrite_
body_ ๐segment - update_
external_ ๐control_ flow - with_
default_ ๐tail_ expr - with_
tail_ ๐expr