//! Declarative macros. Always available (no `macros` feature).
//!
//! `perform!` needs [`crate::IntoNode`]. Proc-macro derives live behind
//! feature `macros`.
/// LCA [`crate::perform()`] using [`crate::IntoNode::node`]
/// so authors do not name `from` / `to` twice.
///
/// ```ignore
/// perform!(self, dest, model, hist);
/// // same as:
/// // let from = self.node();
/// // let to = dest.node();
/// // perform(self, from, dest, to, model, hist);
/// ```
///
/// Requires [`crate::IntoNode`] on the chart type (`#[derive(IntoNode)]` or handwritten).
///
/// Glob-importing [`prelude`](crate::prelude) brings the **function**
/// [`crate::perform()`], so invoke the macro as `newton_machine::perform!(...)`.