pub struct Load<S, C> { /* private fields */ }Expand description
Command that will load the simulation from a user-specified YAML file. Upon completion, the simulation will be reset to the initial state, as per the loaded file, and the cursor position reset to 0.
Implementations§
Trait Implementations§
Source§impl<S, C: Context<State = S>, T: Terminal> Command<T> for Load<S, C>where
for<'de> S: Clone + Deserialize<'de>,
impl<S, C: Context<State = S>, T: Terminal> Command<T> for Load<S, C>where
for<'de> S: Clone + Deserialize<'de>,
Source§type Context = C
type Context = C
The application context type. (The part of the application this is not the REPL library.)
Source§type Error = SimulationError<S>
type Error = SimulationError<S>
The type of error that can be produced by the execution of the command.
Source§fn apply(
&mut self,
looper: &mut Looper<'_, C, SimulationError<S>, T>,
) -> Result<ApplyOutcome, ApplyCommandError<SimulationError<S>>>
fn apply( &mut self, looper: &mut Looper<'_, C, SimulationError<S>, T>, ) -> Result<ApplyOutcome, ApplyCommandError<SimulationError<S>>>
Auto Trait Implementations§
impl<S, C> Freeze for Load<S, C>
impl<S, C> RefUnwindSafe for Load<S, C>where
S: RefUnwindSafe,
C: RefUnwindSafe,
impl<S, C> Send for Load<S, C>
impl<S, C> Sync for Load<S, C>
impl<S, C> Unpin for Load<S, C>
impl<S, C> UnwindSafe for Load<S, C>where
S: UnwindSafe,
C: 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