pub trait Stateful {
type State: Copy;
// Required methods
fn capture_state(&self) -> Self::State;
fn restore_state(&mut self, state: Self::State);
}Expand description
Trait for nodes that carry persistent DSP state across mutations.