Skip to content

Commit

Permalink
Added State.program_mut.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed Nov 8, 2024
1 parent 42a2cb6 commit 81de3ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions runtime/src/program/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ where
&self.program
}

/// Returns a mutable reference to the [`Program`] of the [`State`].
pub fn program_mut(&mut self) -> &mut P {
&mut self.program
}

/// Queues an event in the [`State`] for processing during an [`update`].
///
/// [`update`]: Self::update
Expand Down

0 comments on commit 81de3ba

Please sign in to comment.