Skip to main content

Module helpers

Module helpers 

Source

Structs§

GeneratedFunctionPathSegment
A segment of the path of a generated function - only displayable, as its shape is not meaningful to its callers.

Traits§

BodyItems
Trait for getting the items of a body-item (an item that contains items), as an iterator.
GenericParamEx
GetIdentifier
HasName
Provides methods to extract a name of AST objects.
IsDependentType
Helper trait for check syntactically if a type is dependent on a given identifier.
NameGreen
Trait for ast object with a name terminal.
OptionWrappedGenericParamListHelper
PathSegmentEx
Helper trait for ast::PathSegment.
QueryAttrs
Trait for querying attributes of AST items.
UsePathEx
Helper trait for ast::UsePath.
WrappedArgListHelper
WrappedGenericParamListHelper

Functions§

for_each_generated_function_path_segment
Calls handle_segment for each segment of the path of node’s generated function, from the outermost segment inwards. See generated_function_path.
generated_function_path
Returns the path of the generated function created for node - or for its closest ancestor that is lowered into a generated function - relative to the function it is defined in.
is_single_arg_attr
Checks if the given attribute has a single argument with the given name.