pub struct SimulationView<'a, M: Model> { /* private fields */ }Expand description
Immutable view of model and kernel state after one committed action.
Implementations§
Source§impl<'a, M: Model> SimulationView<'a, M>
impl<'a, M: Model> SimulationView<'a, M>
Sourcepub fn duty(self, duty: DutyId) -> Option<DutySnapshot>
pub fn duty(self, duty: DutyId) -> Option<DutySnapshot>
Returns one owner’s current state.
Sourcepub const fn snapshot(self) -> SimulationSnapshot
pub const fn snapshot(self) -> SimulationSnapshot
Returns bounded global kernel state.
Trait Implementations§
impl<'a, M: Copy + Model> Copy for SimulationView<'a, M>
Auto Trait Implementations§
impl<'a, M> Freeze for SimulationView<'a, M>
impl<'a, M> RefUnwindSafe for SimulationView<'a, M>where
&'a M: RefUnwindSafe,
impl<'a, M> Send for SimulationView<'a, M>
impl<'a, M> Sync for SimulationView<'a, M>
impl<'a, M> Unpin for SimulationView<'a, M>
impl<'a, M> UnsafeUnpin for SimulationView<'a, M>where
&'a M: UnsafeUnpin,
impl<'a, M> UnwindSafe for SimulationView<'a, M>where
&'a M: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more