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.
Required Associated Types§
Required Methods§
fn capture_state(&self) -> Self::State
fn restore_state(&mut self, state: Self::State)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".