Skip to main content

expr_any

Macro expr_any 

Source
macro_rules! expr_any {
    ($template:expr) => { ... };
    ($template:expr, $($param:tt),*) => { ... };
}
Expand description

Macro to create expressions where type is inferred from context Syntax:

  • expr_any!(“template”, arg) -> arg becomes Scalar
  • expr_any!(“template”, (expr)) -> expr becomes Nested
  • expr_any!(“template”, {deferred}) -> deferred becomes Deferred

Function calls like f(x) work as scalar parameters without extra wrapping.