pub fn run(&mut self) {
        assert_eq!(self.state, State::Loading,
                "Tried to run a non-Loading process");

        self.state = State::Running;
    }
/// Set the process's state to `Running` if it was previously `Loading`.
/// This prevents further modifications intended for initialization from
/// occurring.
///
/// Call this before handing the process off to the scheduler.
///
/// # Panics
///
/// Panics if the current state is *not* `Loading`, because that can be
/// indicate the presence of a bug. If you expect that the process might not
/// be `Loading`, you should check its state first.
Set the process's state to `Running` if it was previously `Loading`.
This prevents further modifications intended for initialization from
occurring.

Call this before handing the process off to the scheduler.
Set the process ' s state to ` Running ` if it was previously ` Loading ` . This prevents further modifications intended for initialization from occurring . Call this before handing the process off to the scheduler .
pub fn run(&mut self) {
        assert_eq!(self.state, State::Loading,
                "Tried to run a non-Loading process");
        self.state = State::Running;
    }
pub fn run ( & mut self ) { assert_eq ! ( self state State Loading " " ) ; self . state = State :: Running ; }
Set the process's state to `Running` if it was previously `Loading`.
Set the process ' s state to ` Running ` if it was previously ` Loading ` .
&mut self
panics
Panics if the current state is *not* `Loading`, because that can be
indicate the presence of a bug. If you expect that the process might not
be `Loading`, you should check its state first.
Panics if the current state is * not * ` Loading ` because that can be indicate the presence of a bug . If you expect that the process might not be ` Loading ` you should check its state first .