pub trait HasProgram {
type Program;
// Required methods
fn program(&self) -> &Self::Program;
fn program_mut(&mut self) -> &mut Self::Program;
}Expand description
Access to the composite’s execution-state device, supplied by #[program].
This selects mutable invocation state; the runner borrows program data separately.
Instruction selection and PC management remain internal to stdlib execution.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".