StructsΒ§
- AdtInfo π
- Function
Builder π - Graph π
- Minimally implemented directed graph structure represented by adjacency list.
- Param
Bound πWith Params - Target
Info π - Visitor π
- Where
Pred πWith Params
EnumsΒ§
- Generated
Function πTarget - Visibility π
FunctionsΒ§
- add_
func_ πto_ accumulator - add_
generated_ πfn_ annotation - assoc_
fn_ πtarget_ info - calculate_
necessary_ πvisibility - compute_
contained_ πparams_ in_ generic_ param - compute_
contained_ πparams_ in_ where_ pred - containing_
body π - deduplicate_
arg_ πnames - Makes duplicate argument names unique by appending incrementing numbers.
- filter_
bounds_ πin_ scope - Filters out bounds from impl if weβre generating the function into the same impl weβre generating from.
- filter_
generic_ πparams - filter_
unnecessary_ πbounds - Filters out irrelevant bounds from
generic_paramsandwhere_preds. - fn_
arg_ πname - fn_
arg_ πtype - fn_args π
- Computes parameter list for the generated function.
- fn_
generic_ πparams - Gets parameter bounds and where predicates in scope and filters out irrelevant ones. Returns
Nonewhen it fails to get scope information. - fn_
target_ πinfo - gen_fn π
- gen_
method π - generate_
function π - get_
adt_ πsource - get_
bounds_ πin_ scope - get_
fn_ πtarget - get_
fn_ πtarget_ info - get_
method_ πtarget - insert_
rendered_ πfn - insert_
rendered_ πimpl - make_
fn_ πbody_ as_ new_ function - make_
return_ πtype - Makes an optional return type along with whether the return type should be focused by the cursor. If we cannot infer what the return type should be, we create a placeholder type.
- next_
space_ πfor_ fn_ after_ call_ site - Returns the position inside the current mod or file directly after the current block We want to write the generated function directly after fns, impls or macro calls, but inside mods
- next_
space_ πfor_ fn_ in_ module - params_
and_ πwhere_ preds_ in_ scope