Macro alloy_sol_types::define_udt
source · macro_rules! define_udt { ( $(#[$outer:meta])* $name:ident, underlying: $underlying:ty, type_check: $path:path, ) => { ... }; ( $(#[$outer:meta])* $name:ident, underlying: $underlying:ty, ) => { ... }; ( $(#[$outer:meta])* $name:ident, type_check: $type_check:path, ) => { ... }; ( $(#[$outer:meta])* $name:ident, underlying: $underlying:ty, ) => { ... }; ( $(#[$outer:meta])* $name:ident, ) => { ... }; ( $(#[$outer:meta])* $name:ident ) => { ... }; }
Expand description
Define a Solidity user-defined value type.
Generates a struct of the form $name($underlying)
.