forge_fmt::solang_ext::ast_eqMacro gen_ast_eq_enum
Source macro_rules! gen_ast_eq_enum {
($self:expr, $other:expr, $name:ident {
$($unit_variant:ident),* $(,)?
_
$($tuple_variant:ident ( $($(#[ast_eq_use($tuple_convert_func:ident)])? $tuple_field:ident),* $(,)? )),* $(,)?
_
$($struct_variant:ident { $($(#[ast_eq_use($struct_convert_func:ident)])? $struct_field:ident),* $(,)? }),* $(,)?
}) => { ... };
($other:expr, $name:ident, $unit_variant:ident) => { ... };
($other:expr, $name:ident, $tuple_variant:ident ( $($(#[ast_eq_use($tuple_convert_func:ident)])? $tuple_field:ident),* $(,)? ) ) => { ... };
($other:expr, $name:ident, $struct_variant:ident { $($(#[ast_eq_use($struct_convert_func:ident)])? $struct_field:ident),* $(,)? } ) => { ... };
}