Skip to main content

Module generate_delegate_trait

Module generate_delegate_trait 

Source

StructsΒ§

Field πŸ”’
A utility object that represents a struct’s field.
Struct πŸ”’
A utility struct that is used for the enclosing struct.

EnumsΒ§

Delegee πŸ”’
A field that we want to delegate can offer the enclosing struct trait to implement in two ways. The first way is when the field actually implements the trait and the second way is when the field has a bound type parameter. We handle these cases in different ways hence the enum.

FunctionsΒ§

const_assoc_item πŸ”’
filter_generic_params πŸ”’
Filters generic params, keeping only those whose names are not in names_to_remove.
finalize_delegate πŸ”’
Finalize the delegate impl by:
func_assoc_item πŸ”’
generate_args_for_impl πŸ”’
generate_delegate_trait πŸ”’
generate_impl πŸ”’
generic_param_name πŸ”’
Extracts the name from a generic parameter.
has_self_type πŸ”’
process_assoc_item πŸ”’
remove_instantiated_params πŸ”’
remove_useless_where_clauses πŸ”’
rename_strukt_args πŸ”’
resolve_name_conflicts πŸ”’
transform_impl πŸ”’
ty_assoc_item πŸ”’