Module partial_eq
Source - expand_deriving_partial_eq ๐
- Expands a
#[derive(PartialEq)]
attribute into an implementation for the
target item. - get_field_equality_expr ๐
- Generates an equality comparison expression for a single struct or enum
field.
- get_substructure_equality_expr ๐
- Generates the equality expression for a struct or enum variant when deriving
PartialEq
. - peel_refs ๐
- Removes all leading immutable references from an expression.
- wrap_block_expr ๐
- Wraps a block expression in parentheses to ensure valid AST in macro
expansion output.