Skip to main content

Module traits

Module traits 

Source
Expand description

Functionality for obtaining data related to traits from the DB.

Structsยง

IsRequiredAssocItem

Enumsยง

AssocItemKind ๐Ÿ”’
Names must be unique between constants and functions. However, type aliases may share the same name as a function or constant.

Functionsยง

as_trait_assoc_def ๐Ÿ”’
If this is an trait (impl) assoc item, returns the assoc item of the corresponding trait definition.
assoc_item_of_trait ๐Ÿ”’
convert_to_def_in_trait ๐Ÿ”’
Converts associated trait impl items to their trait definition counterpart
diff_assoc_items ๐Ÿ”’
get_missing_assoc_items
Given the impl block, returns the list of associated items (e.g. functions or types) that are missing in this impl block.
resolve_target_trait
Given the impl block, attempts to find the trait this impl corresponds to.
trait_items_with_required