Crate rerast_macros

Source

Macros§

replace
Invocations of this macro instruct Rerast to replace the first expression/statement with the one after the =>. For example replace!(5 => 6) says to replace all occurences of the literal 5 with the literal 6.
replace_pattern
Replaces a pattern with another pattern. A placeholder is required in order to specify the types of the search and replacement pattern. Although they can be the same if you’re replacing a pattern with another of the same type.
replace_trait_ref
replace_type
Replaces one type with another. This will not match trait bounds (e.g. in where clauses), since they are not types. If you want to replace all references to a trait, use replace_trait_ref! instead.

Structs§

_ExprRuleMarker
_PatternRuleMarker
_Statements
_TraitRefRuleMarker
_TypeRuleMarker

Enums§

Mode

Constants§

_RERAST_MACROS_SRC

Traits§

GetMode

Type Aliases§

Statements
A placeholder that matches zero or more statements IMPORTANT: This is currently broken and will most likely be replaced with a macro.