pub fn vm(context: &runestick::Context, sources: &mut Sources) -> Result<runestick::Vm, RunError> {
    let (unit, _) = internal_compile_source(context, sources).map_err(RunError::Diagnostics)?;
    let context = Arc::new(context.runtime());

    Ok(runestick::Vm::new(context, Arc::new(unit)))
}
/// Construct a virtual machine for the given sources.
Construct a virtual machine for the given sources.
Construct a virtual machine for the given sources .
pub fn vm(context: &runestick::Context, sources: &mut Sources) -> Result<runestick::Vm, RunError> {
    let (unit, _) = internal_compile_source(context, sources).map_err(RunError::Diagnostics)?;
    let context = Arc::new(context.runtime());
    Ok(runestick::Vm::new(context, Arc::new(unit)))
}
pub fn vm ( context : & runestick :: Context , sources : & mut Sources ) -> Result < runestick :: Vm , RunError > { let ( unit , _ ) = internal_compile_source ( context , sources ) . map_err ( RunError :: Diagnostics ) ? ; let context = Arc :: new ( context . runtime ( ) ) ; Ok ( runestick :: Vm :: new ( context , Arc :: new ( unit ) ) ) }
Construct a virtual machine for the given sources.
Construct a virtual machine for the given sources .
context
&runestick::Context
sources
&mut Sources
context
&runestick::Context
sources
&mut Sources