pub fn vm_mut(&mut self) -> Result<&mut Vm, VmError> {
        match self.vms.last_mut() {
            Some(vm) => Ok(vm),
            None => Err(VmError::from(VmErrorKind::NoRunningVm)),
        }
    }
/// Get the current virtual machine mutably.
Get the current virtual machine mutably.
Get the current virtual machine mutably .
pub fn vm_mut(&mut self) -> Result<&mut Vm, VmError> {
        match self.vms.last_mut() {
            Some(vm) => Ok(vm),
            None => Err(VmError::from(VmErrorKind::NoRunningVm)),
        }
    }
pub fn vm_mut ( & mut self ) -> Result < & mut Vm , VmError > { match self . vms . last_mut ( ) { Some ( vm ) => Ok ( vm ) , None => Err ( VmError :: from ( VmErrorKind :: NoRunningVm ) ) , } }
Get the current virtual machine mutably.
Get the current virtual machine mutably .
&mut self
&mut self