pub struct GenericSimulationBorrow<'a, Info: SimulationInfo, StateRef> {
pub state: StateRef,
/* private fields */
}Expand description
A generic struct representing a borrowed simulation with an immutable or mutable reference to the state.
Fields§
§state: StateRefThe referenced simulation state.
Trait Implementations§
Auto Trait Implementations§
impl<'a, Info, StateRef> Freeze for GenericSimulationBorrow<'a, Info, StateRef>where
StateRef: Freeze,
impl<'a, Info, StateRef> RefUnwindSafe for GenericSimulationBorrow<'a, Info, StateRef>where
StateRef: RefUnwindSafe,
Info: RefUnwindSafe,
impl<'a, Info, StateRef> Send for GenericSimulationBorrow<'a, Info, StateRef>
impl<'a, Info, StateRef> Sync for GenericSimulationBorrow<'a, Info, StateRef>
impl<'a, Info, StateRef> Unpin for GenericSimulationBorrow<'a, Info, StateRef>where
StateRef: Unpin,
impl<'a, Info, StateRef> UnwindSafe for GenericSimulationBorrow<'a, Info, StateRef>where
StateRef: UnwindSafe,
Info: RefUnwindSafe,
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