pub fn compile_source(
    context: &runestick::Context,
    source: &str,
) -> Result<(Unit, Diagnostics), Diagnostics> {
    let mut sources = Sources::new();
    sources.insert(Source::new("main", source.to_owned()));

    internal_compile_source(context, &mut sources)
}
/// Compile the given source into a unit and collection of warnings.
Compile the given source into a unit and collection of warnings.
Compile the given source into a unit and collection of warnings .
pub fn compile_source(
    context: &runestick::Context,
    source: &str,
) -> Result<(Unit, Diagnostics), Diagnostics> {
    let mut sources = Sources::new();
    sources.insert(Source::new("main", source.to_owned()));
    internal_compile_source(context, &mut sources)
}
pub fn compile_source ( context : & runestick :: Context , source : & str , ) -> Result < ( Unit , Diagnostics ) , Diagnostics > { let mut sources = Sources :: new ( ) ; sources . insert ( Source :: new ( " " , source . to_owned ( ) ) ) ; internal_compile_source ( context , & mut sources ) }
Compile the given source into a unit and collection of warnings.
Compile the given source into a unit and collection of warnings .
context
&runestick::Context
source
&str
context
&runestick::Context
source
&str