macro_rules! new_op3 {
($s:ident, $name:expr, $(($t1:ident, $t2:ident, $t3:ident) -> $rt:ident { $f:expr }),*) => { ... };
}
Expand description
Creates a new ternary operation macro for use within the string synthesis framework.
The macro accepts the name of the operation and a list of tuples, each representing a combination of three argument types and a return type, along with a closure that defines the operation’s functionality.
It expands to implement basic operation utilities and enumeration traits for the specified operation, invoking helper macros impl_basic!
, which likely sets up foundational properties, and impl_op3!
, which embeds the provided logic into the operational infrastructure.
Overall, this macro streamlines the definition and integration of complex ternary operations within the module.